Jump to content

Uploading


adam84

Recommended Posts

Hi,

I am in the process of making a website. My problem is the I want allow the user to upload a video or a music file, but I am not sure of the best way of doing this. I have tried using the HTML FILE object tag, but if the file is rather large then it will time out. I tried searching yahoo and google and came across fsockopen and I am not sure if that is what I need to use. Any suggestions on what is the best approach?!

Link to comment
https://forums.phpfreaks.com/topic/37111-uploading/
Share on other sites

PhP's upload_max_filesize let you set how big the upload file can be

Apache's Timeouts set the waiting time before the script time out (in second)

 

Header: Keep-Alive timeout=15, max=100

set this manually on your response header

 

Those are things you should know when handling large file size upload.

Always restrict file type and allow only appropriate filetype to be upload.

Link to comment
https://forums.phpfreaks.com/topic/37111-uploading/#findComment-177243
Share on other sites

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.