i've just discovered xupload and i've decided to try it.
I downloaded the free version (2.6) and i 've made my tests through xampp (a apache-php-mysql blundle) under windows (localhost).
So, i moved the content of the folder into a cgi-bin directory (htdocs\mysite\cgi-bin) and the upload_form.html file into htdocs\mysite\.
here is the XUploadConfig.pm file:
and i change the urls of the upload_form.html file like this:package XUploadConfig;
BEGIN
{
use Exporter;
@XUploadConfig::ISA = qw( Exporter );
@XUploadConfig::EXPORT = qw( $c );
}
our $c=
{
# Directory for temporary using files
temp_dir => "http://localhost/mysite/cgi-bin/temp',
# Directory for uploaded files
target_dir => 'http://localhost/mysite/cgi-bin/uploads',
# Path to the template using for upload status window
templates_dir => 'http://localhost/mysite/cgi-bin/Templates',
# Allowed file extensions delimited with '|'
ext_allowed => 'jpg|jpeg|gif|png|rar|zip|mp3|avi|txt|csv',
# URL to send all input values from upload page
url_post => 'http://localhost/mysite/cgi-bin/post.cgi',
# The link to redirect after complete upload
# This setting can be submitted from HTML form, then it will have priority
redirect_link => 'http://localhost/mysite/upload_form.html',
# Max length of uploaded filenames(without ext). Longer filenames will be cuted.
max_name_length => 64,
# Type of behavior when uploaded file already exist on disc. Available 3 modes: Rewrite/Rename/Warn
copy_mode => 'Rename',
# Maximum total upload size in Kbytes
max_upload_size => 70000000,
# Time to keep temp upload files on server, sec (24 hours = 86400 seconds)
temp_files_lifetime => 86400,
};
1;
win1 =
andwindow.open('cgi-bin/upload_status.cgi?upload_id='+UID,'win1','width=320,height=240,resizable=1');
I also change the size of uploaded file in the php.ini.action="cgi-bin/upload.cgi?upload_id="
But when i launch a uploading i receve this error message:
"couldn't create child process: 720003: upload_status.cgi"
Error 500
EDIT: i access to the upload page (the page where we select the file to upload) but the uploading doesn't work :/
Did i miss something?
Thanks for the answer.