| View previous topic :: View next topic |
| Author |
Message |
barnsz
Joined: 11 Oct 2006 Posts: 3
|
Posted: Oct 11, 2006 11:11 am Post subject: xupload install problem |
|
|
hi sisoft
i need help for installing xupload.
i'm a graphics guy and very new to php & sql
i guess i got all the permissions right - since i'm able to call upload_status.cgi but it only returns "transfer complete!" instantly - no matter how large the file is. i dont get the progressbar and nothing gets uploaded.
http://www.oopsdigital.com/upload_form.html
i use:
xupload 2.5 free
Perl version 5.8.3
my dir structure is like this:
/cgi-bin/xupload/*.cgi (for the xupload.cgi files)
/uploads (in the root dir)
/temp (in the root dir)
/uploadform.html (in the root dir)
my config file looks like this
--------------- cut here --------------------------
package XUploadConfig;
BEGIN
{
use Exporter;
@XUploadConfig::ISA = qw( Exporter );
@XUploadConfig::EXPORT = qw( $c );
}
our $c=
{
# Directory for temporary using files
temp_dir => '/temp',
# Directory for uploaded files
target_dir => '/uploads',
# Path to the template using for upload status window
templates_dir => '/cgi-bin/xupload/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
# This setting can be submitted from HTML form, then it will have priority
url_post => '/cgi-bin/xupload/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://www.oopsdigital.com/',
# 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 => 700000000,
# Time to keep temp upload files on server, sec (24 hours = 86400 seconds)
temp_files_lifetime => 86400,
# CSS names
styles => { 'black' => 'black.css',
'hitech' => 'hi_tech.css',
'aqua' => 'aqua.css',
'tiny' => 'tiny.css',
'contrast'=> 'contrast.css',
},
# Template names
templates => { 'simple' => 'simple.html',
'hitech' => 'hitech.html',
'nice' => 'nice.html',
},
};
1;
--------------- cut here --------------------------
hope you will help me
best regards
michael pointner |
|
| Back to top |
|
 |
barnsz
Joined: 11 Oct 2006 Posts: 3
|
Posted: Oct 11, 2006 12:54 pm Post subject: upload working |
|
|
seams i got the upload working
changed temp_dir & target_dir to "/home/oops...."
seams that has fixed it.
but i still dont get the progressbar - still jumps to "transfer complete" instantly.
any ideas? |
|
| Back to top |
|
 |
watcha
Joined: 08 Oct 2006 Posts: 12
|
Posted: Oct 11, 2006 2:52 pm Post subject: |
|
|
I hade similar problems. You need to change also templates_dir.
My PM config looks like this:
| Code: | our $c=
{
# Directory for temporary using files
temp_dir => '/var/www/web55/html/cgi-bin/uploadtemp',
# Directory for uploaded files
target_dir => '/var/www/web55/html/cgi-bin/uploadfinish',
# Path to the template using for upload status window
templates_dir => '/var/www/web55/html/cgi-bin/upload/Templates', |
Maybe an idea for the XUpload Developers. It is nowhere mentioned to use the absolute path here. I think it would help the users to add sample path in comments.  |
|
| Back to top |
|
 |
tubbly
Joined: 06 Sep 2006 Posts: 15
|
Posted: Oct 11, 2006 3:57 pm Post subject: |
|
|
This has been in a few posts on this forum and is probably caused by your server buffering the uploads.
I added a .htaccess file to the folder my XUpload cgi scripts are in as follows:
SetEnvIfNoCase Content-Type "^multipart/form-data;" "MODSEC_NOPOSTBUFFERING=Do not buffer file uploads"
This did the trick for me. |
|
| Back to top |
|
 |
barnsz
Joined: 11 Oct 2006 Posts: 3
|
Posted: Oct 11, 2006 4:13 pm Post subject: |
|
|
Yup that .htaccess file did it
i cost me about 2 days now - but now i' feel relieved.
i'm sorry - l looked through the other posts - but it wasnt obvious to me - it seams.
Thanks for all the answers. |
|
| Back to top |
|
 |
tubbly
Joined: 06 Sep 2006 Posts: 15
|
Posted: Oct 11, 2006 4:56 pm Post subject: |
|
|
I only know as I had the same problem and posted the same question myself when first using XUpload  |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 1107 Location: Undisclosed location
|
Posted: Oct 12, 2006 1:47 pm Post subject: |
|
|
Thanks, Tubbly!  |
|
| Back to top |
|
 |
|