SibSoft Ltd.
Development Services
software products
 RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
EZYWebhost - Cheap XUpload & XFileSharing 100% campatible hosting

AJAX upload progress bar

File sharing script
xupload install problem

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload
View previous topic :: View next topic  
Author Message
barnsz



Joined: 11 Oct 2006
Posts: 3

PostPosted: Oct 11, 2006 11:11 am    Post subject: xupload install problem Reply with quote

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
View user's profile Send private message Visit poster's website
barnsz



Joined: 11 Oct 2006
Posts: 3

PostPosted: Oct 11, 2006 12:54 pm    Post subject: upload working Reply with quote

seams i got the upload working Smile

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
View user's profile Send private message Visit poster's website
watcha



Joined: 08 Oct 2006
Posts: 12

PostPosted: Oct 11, 2006 2:52 pm    Post subject: Reply with quote

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. Smile
Back to top
View user's profile Send private message
tubbly



Joined: 06 Sep 2006
Posts: 15

PostPosted: Oct 11, 2006 3:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
barnsz



Joined: 11 Oct 2006
Posts: 3

PostPosted: Oct 11, 2006 4:13 pm    Post subject: Reply with quote

Yup that .htaccess file did it Smile

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
View user's profile Send private message Visit poster's website
tubbly



Joined: 06 Sep 2006
Posts: 15

PostPosted: Oct 11, 2006 4:56 pm    Post subject: Reply with quote

I only know as I had the same problem and posted the same question myself when first using XUpload Wink
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 1107
Location: Undisclosed location

PostPosted: Oct 12, 2006 1:47 pm    Post subject: Reply with quote

Thanks, Tubbly! Cool
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group