954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to upload large files quickly?

Hi,

I'm writing a script where user upload any video file and my script converts the video in flv format. Since video files are very heavy in size (I want to give upload limit of 10MB), it takes much time to upload.

I observed, when we upload any file to youtube, it does the job very quickly. Any suggestion to make the upload process quick?

I know youtube has very fast servers, but still I think there is more than servers.

frazehmad
Newbie Poster
8 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

Check out something like plupload http://www.plupload.com/ .
It supports chunking on multiple different types of uploaders which won't make the upload go any faster, but effectively the user sees progress and the script isn't running for the entire 10mb upload, only long enough to process a chunk of n size.

My experiences with it thus far have been mostly positive, its documentation is a little lacking though.

mschroeder
Work Harder
Team Colleague
666 posts since Jul 2008
Reputation Points: 279
Solved Threads: 131
 

2 things influence how fast it will appear to upload.

1) The user's connection speed. If they're connected through dial-up, there's not much you can do to make it faster. This is the lion's share of the time

2) Your processing time. Quite small relative to the time it takes to upload the file. This is about the only thing you can speed up. See if there are any optimizations you can do to speed up the transcoding. Likely though, the time gains you make here won't make much of a difference relative to the time it takes to upload the file.

quasipickle
Light Poster
49 posts since Oct 2010
Reputation Points: 10
Solved Threads: 13
 

2 things influence how fast it will appear to upload.

1) The user's connection speed. If they're connected through dial-up, there's not much you can do to make it faster. This is the lion's share of the time

2) Your processing time. Quite small relative to the time it takes to upload the file. This is about the only thing you can speed up. See if there are any optimizations you can do to speed up the transcoding. Likely though, the time gains you make here won't make much of a difference relative to the time it takes to upload the file.

Actually, I uploaded a file using my PHP script, and I uploaded the same file to youtube. But youtube was far better than mine by the mean of speed. That's why I'm still curious to know the way to do the uploading stuff fast.

I still think, there must be some other way. However, thanx for your advice.

frazehmad
Newbie Poster
8 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

Check out something like plupload http://www.plupload.com/ . It supports chunking on multiple different types of uploaders which won't make the upload go any faster, but effectively the user sees progress and the script isn't running for the entire 10mb upload, only long enough to process a chunk of n size.

My experiences with it thus far have been mostly positive, its documentation is a little lacking though.

Oh Yeah! I use such sort of uploaders. They are really good for usability. But again, my target is to save user from frustration. I don't want my user to see the animated progress bar for long.

By the way plupload looks good to be used in my next project :)

frazehmad
Newbie Poster
8 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: