/    Sign up×
Community /Pin to ProfileBookmark

upload large files + low internet speed

Basically my question is this:
how does youtube manage the problem?

They allow users to upload files larger than 2GB, and even with low internet connections users can easily upload large files.

On our website which is made for the middle east, we have some users who have internet speed of around 256kb in some cases we would like to allow them to upload up to 100 MB files.

I am looking for the proper solution rather than just allowing scripts to work for HOURS, taking away memory and connections.

the website is this
[url]http://www.kalam.tv/fa[/url]

If someone can point us the right direction of getting the files transferred through proper php scripts rather than server modifications which could cause alternative problems that would be great.

How do website like youtube, metacafe, facebook, vimeo, etc. do it?

Thanks.

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@ryanlundFeb 02.2010 — I might be wrong, but dont youtube etc use flash to upload their videos. Now i wont claim im an expert on flash so i dont know exactly how they do it.....You dont want to be uploading massive files using php though, thats just a recipe for disaster imo.
Copy linkTweet thisAlerts:
@MindzaiFeb 02.2010 — You dont want to be uploading massive files using php though, thats just a recipe for disaster imo.[/QUOTE]

Why? Chances are most flash uploaders are just sending data via HTTP to a PHP script on the server anyway.
Copy linkTweet thisAlerts:
@ryanlundFeb 02.2010 — Not quite what i meant, i just mean that users aint going to like waiting for the upload....its all well and good using flash to upload to a php script as you can see its doing something but when your uploading using just PHP alone you have the fact your users are sat there looking at the same screen until it uploads. I personally hate that, so im sure others do too.

However, using a little javascript magic you could sort that out too i guess...
Copy linkTweet thisAlerts:
@XeroSiSauthorFeb 05.2010 — Yes, both You Tube and Vimeo use Flash, most probably because of what you mentioned to show a progress bar which allows the user to have a visual of how things are going, but for me the question is the backend, how does the script in the back work to manage this?
Copy linkTweet thisAlerts:
@MindzaiFeb 05.2010 — The same as any HTTP file transfer - the flash app just submits a post request with the relevant data. You then just handle the file upload as normal in the PHP back end.
×

Success!

Help @XeroSiS spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...