in my error logs to identify the problem. Here's how I fixed it:
First, I enabled warnings by adding "-w" to the end of the first line
in all of the *.cgi scripts, like this:
before:
Code: Select all
#!/usr/bin/perl
Code: Select all
#!/usr/bin/perl -w
so you should change this back, after you're finished troubleshooting
to avoid filling up your error log with too much detail.
Next, I tried another upload and found this in my error log:
Code: Select all
Not enough arguments for mkdir at (path)/upload.cgi line 32, near "$temp_dir;"
Not enough arguments for mkdir at (path)/upload.cgi line 90, near "})"
upload.cgi: Execution of (path)/upload.cgi aborted due to compilation errors.
Code: Select all
mkdir $temp_dir;
to this:
Code: Select all
mkdir $temp_dir,0777;
Code: Select all
mkdir($c->{target_dir});
Code: Select all
mkdir($c->{target_dir},0777);
I'm using an older version of Perl (ver 5.00503) so that might be the reason.
XUpload seems to be a great program so I hope this helps someone who's stuck.