Kevin Bosak <[EMAIL PROTECTED]> writes:
> I can get the file's name but the upload
> is simply not getting linked/saved. I'm sure it's probably something
> I'm doing wrong, but I don't know what. Here's the relevant lines
> from my code:
>
> my $upload = $r->upload('file');
> my $filename = $upload->filename;
> $upload->link("/path/to/local/$filename");
>
> Is there something I can do to troubleshoot this?
Three things to check:
1) be sure $filename is valid (it really should be marked as tainted),
2) be sure "/path/to/local/$filename" is on the same device
(filesystem) as your temporary directory (see the docs for
Apache::Request::new regarding TEMP_DIR).
3) check the return value of $upload->link, if it's false (undef) then
there was a problem- usually the trouble is caused by one of the above.
--
Joe Schaefer
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html