Giant File Uploads With Rev CGI

Sivakatirswami katir at hindu.org
Sun Dec 17 21:05:46 EST 2006


This is a call for comments, guidance, best practice advice, "gotchas" to
watch out for etc. for large file uploads by general users to a web server.

  I don't think we well do anything big, like youTube of Flicker, but
I still need the same user friendly upload facility for "naive" users who
know nothing about FTP. As we are moving forward with
"Rich Media" development and we want to open a pipeline for
people to easily send us video and sound files.

I see Google is Distributing it's own standalone app for uploading video.

Of course we have the hold html form upload file option too,
which I would use on a .htaccess protected page.

<form enctype="multipart/form-data" method=post 
action=/cgi-bin/acceptUploads.cgi>
   Enter filename of the video to upload:
   <input type=file size=36 name=file><br>
  <input type=submit value="Upload file">
</form>

with a Revolution back end CGI to save the data.

The form will also  need to  have the usual info to
attend any upload:

email: _____
Name: ______
Description of media being upload. (text area)

My experience so far with Rev CGI has been good, but limited
to small amounts of data from form input fields, rarely longer than 150 
chars
in a comment field of something like a guestbook form.

I *did* have some problem with tests to try pasting large amts of text
into an input textarea field (like a long text article submitted by a 
reporter)
  ... the text got truncated.

But I'm not sure the blame for that can be placed on the Revolution CGI.
You all know the drill: we simply split the urlDecoded data into a 
little array and take it from there.
I'm not sure that model work for receiving large binary http POST uploads.

Is anyone already doing this successfully with Rev CGI?  Can share your
  html form and CGI code that works? (we could be accepting uploads
as big as 100 meg video files....)

We are running Rev 2.6 on Linux Fedora Core 3 on web server at the moment.

Sivakatirswami
www.himalayanacademy.com

Get Hinduism Today Digital Edition. It's Free!
http://www.hinduismtoday.com/digital/



More information about the use-livecode mailing list