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
https://forums.phpfreaks.com/topic/187210-how-to-upload-large-file-using-php-code/
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.

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" />

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.