On Thu, 19 Oct 2000, Alexander Farber (EED) wrote:
> How do you handle uploading files when using multi-paged
> forms (for example entered text and a picture are previewed
> before storing into the database and special directory)?
>
> Uploaded files can't be passed as hidden fields, right?
> So do you let your users to upload the same file several
> times and then delete the temporary files with a cron job?
Not multiple times, but let them upload and store in a temp file, which
you can store the filename as a hidden field. Use File::MkTemp to create
the filenames.
And delete temp files older than 60 minutes or so periodically.
--
<Matt/>
/|| ** Director and CTO **
//|| ** AxKit.com Ltd ** ** XML Application Serving **
// || ** http://axkit.org ** ** XSLT, XPathScript, XSP **
// \\| // ** Personal Web Site: http://sergeant.org/ **
\\//
//\\
// \\