How to increase my upload limit in php


I read so many articles out there in the internet and found that to change the php.ini file to upgrade the upload limit. But I do all the suffs and cant upload more than 10mb of files or so.

I am trying to add a feature to upload video file through the front end for users. But failed for some reason

Is there any other way to do it. Or is it because it is a video file or some thing like that


Make sure that you have (in php.ini, .htaccess, etc.):


increased post_max_size to at least twice the max file size that you might need to upload

</li> <li>

increased upload_max_filesize to the max file size that you might want to upload

</li> <li>

increased memory_limit to something bigger than post_max_size

</li> </ul>


On top of setting php.ini

upload_max_filesize = 200M post_max_size = 200M

I owuld look into a flash uploader like <a href="http://www.uploadify.com/" rel="nofollow">uploadify</a>. It will make your life much easier trust me.


Since you are changing the php.ini, are you restarting the webserver so that the changes take effect (if using mod_php)? Does the webserver itself have any restrictions set?


It's been a while since I've done this, but in my php.ini I have upload_max_filesize = 200M and I have post_max_size = 200M

I also set max_execution_time = 3000 If this is set too low, it'll cut off while the user is still uploading. You should also bump up max_input_time and memory_limit


  • Column Nullability/Optionality: NULL vs NOT NULL
  • stringify/parse edn in clojure/ClojureScript
  • Add a div to replace Video after Video Plays Through
  • Help with mod_rewrite
  • Are there any supported high bit-depth video or image formats in DirectShow
  • Removing the .php file extension from the URL Request
  • Converting raw frames into webm live stream
  • Using an enum contained in a Cloud Endpoint model on a Android client
  • SIP API media codecs
  • Xaml, wpf image position and crop issue
  • Inversing an interpolation of rotation
  • C# - Most efficient way to iterate through multiple arrays/list
  • Laravel 4 routing not working due to .htaccess file?
  • HttpClient: disabling chunked encoding
  • Display validation errors inside
  • Floated image with variable width and heading with background image
  • Extract zip entries to another Zip file
  • Problems installing Yesod for Haskell
  • Using a canvas object in a thread to do simple animations - Java
  • Unable to install Git-core+svn by MacPorts
  • htaccess add www if not subdomain, if subdomain remove www
  • GridView breaks while scrolling
  • How to change the font size of a single index for UISegmentedControl?
  • Abort upload large uploads after reading headers
  • Time complexity of a program which involves multiple variables
  • Magento Fatal error: Maximum execution error solution, on WAMP
  • VSO Build — Response status code does not indicate success: 404 (Not Found)
  • Atlas images wrong size on iPad iOS 9
  • Change multiple background-images with jQuery
  • ilmerge with a PFX file
  • Android screen density dpi vs ppi
  • java.lang.NoClassDefFoundError: com.parse.Parse$Configuration$Builder on below Lollipop versions
  • What is Eclipse's Declaration View used for?
  • How to make a tree having multiple type of nodes and each node can have multiple child nodes in java
  • DirectX11 ClearRenderTargetViewback with transparent buffer?
  • Cassandra Data Model
  • Change an a tag attribute in JavaScript based on screen width
  • Codeigniter doesn't let me update entry, because some fields must be unique
  • how does django model after text[] in postgresql [duplicate]
  • How to get NHibernate ISession to cache entity not retrieved by primary key