Jump to content

How could i upload a large file?


c_shelswell

Recommended Posts

I'm totally stuck and if anyone could help or point me in the way of a good tutorial i'd be very very grateful.

I need to create a page where a user can browse for a file (it's going to be quite large so the in built php method isn't an option) then upload it to a server. The file might be in the region of 100mbs. I need to process other details at the same time via php which i can do. I just can't seem to find a good way of uploading the file that requires the minimum amount of user input.

I've tried this tutorial [url=http://articles.techrepublic.com.com/5100-3513-6069684.html]http://articles.techrepublic.com.com/5100-3513-6069684.html[/url] which works fine with a small .jpg file but as soon as i try to upload a 6mb mp3 it won't allow it. I've tried adjusting the MAX_FILE_SIZE attribute as well.

I'm at my wits end any advice would be fantastic.

Cheers
Link to comment
https://forums.phpfreaks.com/topic/29712-how-could-i-upload-a-large-file/
Share on other sites

the max file size is only part of the problem it is also the execution time which causes the issue. maximun time is defaulted at 30 seconds I believe. Change that to 300(5 minutes) and then try it out. in your php.ini file it is

max_execution_time = 300    ; Maximum execution time of each script, in seconds

the whole time the script is uploading the file counts toward the execution time. Try it out

Ray

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.