Curtis+List,

I checked out the CGI::Safe.pm module, and so far, I'm having the same
problem.  The script goes to "Just about to get your resume!"; then quits.
I don't have access to server logs, so I don't know what is going on.  I
think my server is running Apache, and I've been snooping to try and find
the config files (I got a >find / -name httpd.conf going right now)

Is there anything perlish wrong here?  It works on Activestate/Apache/Win98,
so I think it must be a server thing, but I dunno.

Here are the relevant snippets:

<code>
use CGI::Safe;
my $cgi = CGI::Safe->new( DISABLE_UPLOADS => 0,
            POST_MAX => 100 * 1024 );
...
 print $cgi->filefield('resume','starting value',40,180);
...
 print "Just about to get your resume!";
 # only allow Word docs
    my $file = $cgi->get_upload( file_name => 'resume', format =>
'Application/msword' );

    if ( $file->{ error } ) {
       print "Your file was not uploaded.  Sorry."
    }
 print "Just got your resume!";
</code>

This is getting a little OT, but my find was successful, and I think this
applies to me:

<Directory /home/*/public_html>
        Options Includes Indexes FollowSymLinks ExecCGI
        AllowOverride AuthConfig Limit FileInfo
</Directory>

Ok, after looking at Apache docs for 20mins, I can do an .htaccess file to
control that directory, but I'm going to send this, just in case anyone can
make any sense of it.

Any help would be much appreciated!

Thanks,
Ryan

Sorry this is so rambling, it was written over the course of about an hour.
I'll be better about my future questions!


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

Reply via email to