Re: your opinion on this: large file upload to isp instead of web host



On Wed, 06 Feb 2008 12:09:55 +0100, Rik Wasmus wrote:

On Wed, 06 Feb 2008 11:47:27 +0100, henribaeyens <contact@xxxxxxxxxx>
wrote:

Hello,

I'd like some input on this idea.
I'm working on a site that'll serve streaming video (kinda like youtube
but WAY more confidential, if you know what I mean). The problem though
is that the web host isn't very flexible: the upload file size limit is
2 megs and we'll be using 10 to 20 megs files.

This may be the default. I haven't met a host where I couldn't override
this setting though, and they don't care if you want that with good
reason, it's just a 'default safety'.

For PHP something like this would go in an .htaccess file for Apache:

php_value max_post_size 20971520
php_value upload_max_filesize 20971520 php_value max_input_time 900

They can be ftp'd, but
that's not a practical solution: see, videos (FLVs) are meant to be
uploaded thru an admin interface along with some other data such as
title, subject, keywords, date of recording, and all that is fed to a
database (the process has to be fluid: the admin shan't have to enter
the video's data, update the database, and then open an ftp client to
upload the actual file). So I was thinking about using the isp. In a
nutshell, the video file would be uploaded not to the web hosts disk
but to the isp's. The database will store a link to the remote file. Of
course, I'll have to make sure that the streaming would still be fast
enough. But many pages and blogs feature youtube media, and I don't
really see any difference.
Practically, how do I tell php not to upload to the web host but to the
isp?

By posting the form to the ISP rather then the site itself?

well I can't ftp from the web host itself, so the form would have to be
processed from the isp.

But I'll try overriding the default file size with an .htacess, it's
simpler now that I think about it
.



Relevant Pages