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