XUpload - Various Issues

Message
Author
alicia86
Posts: 3
Joined: Feb 21, 2008 10:01 pm

Various Issues

#1 Postby alicia86 » Feb 21, 2008 10:12 pm

After perusing the forum trying to find answers and finding none here is my own inquiry.
Using the Free 2.6 version
OS: windows XP
browser: IE and FF
Earlier the file was uploading into the proper folder, but the status bar popup has never displayed (get a 404 error).
Also all of a sudden, I've been getting "Maximum upload size exceeded".
So two things aren't working: The status bar and the upload.

http://test.swrpgrc.com/images/photos/upload_form.html

Here's the config file code

Code: Select all

package XUploadConfig;

BEGIN
{
  use Exporter;
  @XUploadConfig::ISA = qw( Exporter );
  @XUploadConfig::EXPORT = qw( $c );
}

our $c=
{
 # Directory for temporary using files
 temp_dir        => '/home/www/test.swrpgrc.com/images/photos/Unfinished/',

 # Directory for uploaded files
 target_dir      => '/home/www/test.swrpgrc.com/images/photos/images/',

 # Path to the template using for upload status window
 templates_dir   => '/home/www/test.swrpgrc.com/cgi-bin/Templates/',

 # Allowed file extensions delimited with '|'
 ext_allowed     => 'jpg|jpeg|gif|bmp',

 # URL to send all input values from upload page
 url_post        =>

 # The link to redirect after complete upload
 # This setting can be submitted from HTML form, then it will have priority
 redirect_link   => 'http://test.swrpgrc.com/images/photos/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;


Thanks for any help in advance

User avatar
PilgrimX182
Posts: 2183
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Feb 22, 2008 6:51 am

First of all, fix URL in this line:

Code: Select all

win1 = window.open('/home/www/test.swrpgrc.com/cgi-bin/upload_status.cgi?upload_id='+UID,'win1','width=320,height=240,resizable=1');

just remove '/home/www/test.swrpgrc.com' from it.

Second, add quotes to the end of "url_post =>"
so it will be

Code: Select all

url_post        => '',


Try now ;)

alicia86
Posts: 3
Joined: Feb 21, 2008 10:01 pm

#3 Postby alicia86 » Feb 22, 2008 7:20 am

Thanks that fixed everything but the status bar pop up. Which I can live with out as long as the rest of it worked.

alicia86
Posts: 3
Joined: Feb 21, 2008 10:01 pm

more issues

#4 Postby alicia86 » Mar 02, 2008 5:35 am

I moved the page from where it was before and thought I had transferred to code correctly but it's no longer working. Here is the new location and the config code
http://dawnofdefiance.swrpgrc.com/files/upload_form.html

Code: Select all

package XUploadConfig;

BEGIN
{
  use Exporter;
  @XUploadConfig::ISA = qw( Exporter );
  @XUploadConfig::EXPORT = qw( $c );
}

our $c=
{
 # Directory for temporary using files
 temp_dir        => '/home/www/dawnofdefiance.swrpgrc.com/files/Unfinished/',

 # Directory for uploaded files
 target_dir      => '/home/www/dawnofdefiance.swrpgrc.com/files/Files/',

 # Path to the template using for upload status window
 templates_dir   => '/home/www/dawnofdefiance.swrpgrc.com/cgi-bin/Templates/',

 # Allowed file extensions delimited with '|'
 ext_allowed     => 'pdf|doc|html|htm',

 # URL to send all input values from upload page
 url_post        =>  '',

 # The link to redirect after complete upload
 # This setting can be submitted from HTML form, then it will have priority
 redirect_link   => 'http://dawnofdefiance.swrpgrc.com/files/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 => 100000,     

 # Time to keep temp upload files on server, sec (24 hours = 86400 seconds)
 temp_files_lifetime => 86400,

};

1;



Edit: I got the files to upload for the most part. Files larger than a 1MB don't seem to upload. Since the status bar pop up doesn't work it's hard to tell if it's doing anything.


Return to “XUpload”