adam84 Posted February 5, 2007 Share Posted February 5, 2007 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?! Quote Link to comment Share on other sites More sharing options...
hvle Posted February 5, 2007 Share Posted February 5, 2007 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.