Jump to content

How to upload large file using php code


sudip

Recommended Posts

I have installed Xampp for windows. I have configured into php.ini the upload_max_filesize = 32M. So i can upload maximum file size will be 32MB. But I can not to upload. actually my file size was 21MB. But I can not to upload. So please tell me how to upload large file using php? I was print using print_r($_FILES). But its not given any result. Just given Array(). But for small file its printed the files output.

Link to comment
Share on other sites

Its still given same error

Did you verify that the setting was changed using a phpinfo(); statement?

 

If the setting did not change, then you either did not change the correct php.ini or you did not stop and start your web server to get any change made to the php.ini to take effect.

Link to comment
Share on other sites

try modifying these values in the php.ini file :P

 

post_max_size

 

upload_max_filesize

make them the max size.. after change u need to restart the apache service ;D

if u have the html form in ur code mention this

<input type="hidden" name="MAX_FILE_SIZE" value="100000" />

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.