Re: Problem with uploader
[email protected] ("Owen") Sun, 23 Nov 2008 15:23:28 +1100 (EST)
| Newsgroups | perl.beginners.cgi |
|---|---|
| Message-ID | <[email protected]> |
> On Friday 21 November 2008 11:23:11 am you wrote:
>> On Tue, 2008-11-18 at 10:49 -0500, Adam Jimerson wrote:
>> >
>> > If the open failed then wouldn't the die kick in and at least say
something in the server logs? Also how would one go around and
>> get a
>> > more descriptive error message? For testing reasons the path is
>> pointing
>> > to /tmp which is world readable and writable, as for the file it
>> seems
>> > the script is looking for something other than what I want
>> rereading my
>> > logs I found this:
<snip>
>> The CGI module creates a temporary file for the uploaded file
before
>> it
>> is handled by your script (which would likely result in a filename
like
>> above). It may be with this implicit step that you're having
>> problems.
>> Check options and permissions.
>
> What exactly do I need to be looking for in options and permissions?
I apologize for not having the rest of your thread, but don't forget
that CGI::Carp can be used, one use is in the set_message routine
use CGI::Carp qw(fatalsToBrowser set_message);
set_message("Please report details of this error to <a
href=\"mailto:me\@somwhere.org\">me\@somewhere.org</a>. Thankyou.");
It may not be applicable to your case, so FWIW
Owen