i am currently developing the back and frontend for a project which
tries to be a meta-ressource for independent media works (
http://mmm.ok.ag)
MMM is a publishing platform for
visual media productions (moving media) of emerging contemporary
artists in various genres.
if people want to upload their video-works i want to create a
file-uploading-part which has to handle rather big files (up to ~650MB
in the "worst" case)
we have an anonymous ftp-upload, but i wanted to build a web-driven
upload from the submission form of the works:
my aim:
- upload form with CGI::FormBuilder
(the CGI doesn't mean that it's only usable with CGI.pm, also usable with
mod_perl)
- submit the form to a new window (respectively perl/cgi script)
- this window should show the uploading progress
for the last part of this i wanted to use a frame which is 100% width
and height, the invisible frame processes the uploading request, the
visible frame (with
http-equiv-refresh)
shows the uploading progress.
there are several
RFCs about
Form Handling, i read most of them, but my problem now with perl is the
following:
i want to extract the
Content-length of the
http
header, and compare it to the temporary file on the server or the
data transfered so far.
how to solve this issues in perl/cgi/mod_perl?
- reading the Content-length of the file to
be transmitted
- reading the currently transmitted bytes
thanks a lot,
parasew