> $uploadfile = $query->param("upload");
> $mime_type = uploadInfo($file)->{'Content-Type'};
>
> Is there a way of doing this with Embperl?

>From the docs:

When you have installed CGI.pm 2.46 or above you may also retrieve the
filename (local filename, as it was on the browser side) and the
informations provied by the CGI.pm uploadInfo function. To get the filename
just print out the value of the correspondig %fdat entry, instead of using
it as a filehandle. To get the uploadInfo use the fieldname with a dash in
front of it:


  Example:


  # ImageName is the NAME of the field, you must replace it with whatever
  # name is given in your HTML code
  Filename:      [+ $fdat{ImageName} +] <br>
  Content-Type:  [+ $fdat{-ImageName} -> {'Content-Type'} +] <br>


>
> What's the biggest upload that Embperl can handle?  Would it be
> feasible to
> upload 400MB movie clips or such through Embperl to a database?
> Or what the
> webserver run out of memory and die miserably?
>

file uploads are the only thing that Embperl uses CGI.pm. CGI.pm reads the
data in small chunks and writes it to disk, so there is no problem with
memory, as far as you disk has enounght free space.

> When using
>
> $sth->bind_param(1, $data, {ora_type=>113}),
>
> Is there a way to buffer the moving of data between the user's
> browser and the
> database so that it doesn't load a 400MB file into memory?
>

I thought there is some way, but I can't find it. I think you should search
the DBI users mailinglist archiv for that problem.

Gerald


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to