Upload status not available until upload finished

XUpload related questions

Moderator: admin

Message
Author
User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#16 Postby PilgrimX182 » Apr 28, 2007 10:16 am

All details in your PM forum inbox. Fixed 500 progress bar error - header was required.

pinesystems
Posts: 6
Joined: Apr 25, 2007 5:09 am

#17 Postby pinesystems » Apr 29, 2007 2:09 am

Thanks for your help again.
I really appreciate it.

The small file (< 100 byte ) upload is working now.

The max. file size limit is currently set at 100MB in the XUploadConfig.pm file.

However, if I try to upload a 550MB mpg file (xxx.mpg)
It displays "Transfer complete" on the pop-up window in a few seconds.

Instead, it should displays "Max. File Size Limit Exceeded".

Thanks,
Jimmy

DKY
Posts: 8
Joined: May 01, 2007 12:56 am

#18 Postby DKY » May 01, 2007 2:20 am

I'm having the same issue, I've been trying all of the fixes in this forum to no avail. Oh yeah and mine (the free one) comes with a default .htaccess file, I didn't have to create it. What did you do in this last instance to fix the issue?

************ EDIT
I just found out that .htaccess is enabled on my shared host

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#19 Postby PilgrimX182 » May 02, 2007 5:52 am

Ok. In upload_status.cgi find line "print $t->output;" and add below:

Code: Select all

print "<!--".('x'x6000)."-->";


Then in the same file find

Code: Select all

print"<Script>SP($size,$time,$speed,$files_uploaded,$time_left);</Script>";


and add below

Code: Select all

print "<!--".('x'x4000)."-->";


this should do the work.

DKY
Posts: 8
Joined: May 01, 2007 12:56 am

#20 Postby DKY » May 02, 2007 3:35 pm

Nope,

I still get the pop-up that says "Upload Failed!" after a few seconds of blank screen and the funny thing is that the other screen redirects to the details of the upload screen. When I check the Uploads folder on the server, the upload is there and is successful.

Here's my .htaccess

Code: Select all

# General Apache options
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI

<IfModule mod_security.c>
SetEnvIfNoCase Content-Type "^multipart/form-data;" "MODSEC_NOPOSTBUFFERING=Do not buffer file uploads"
</IfModule>

<IfModule mod_gzip.c>
mod_gzip_on No
</IfModule>

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#21 Postby PilgrimX182 » May 03, 2007 7:26 am

Ah, "Upload Failed!" problem...that's cause disk caching...

in upload_status.cgi find

Code: Select all

&DisplayMessage("Transfer complete!")


and add ABOVE:

Code: Select all

for(1..20){ last if -e $flength_file; sleep 1; }


with this quick hack status window will wait some time till file appear on disk, then start working.

DKY
Posts: 8
Joined: May 01, 2007 12:56 am

#22 Postby DKY » May 03, 2007 3:08 pm

Hmm, still no go. I'm trying to upload a 8.65 meg file and adjusted my php.ini to be able to upload it (and can under a php upload script) and it still is saying "Upload Failed!". I currently have both edits, was I supposed to undo the last one and do this one only?
Any other suggestions?

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#23 Postby PilgrimX182 » May 07, 2007 5:19 am

Make sure you have existing correct full paths in your config.
When uploading big file, check if temp folder & file creating in your temp folder.

DKY
Posts: 8
Joined: May 01, 2007 12:56 am

#24 Postby DKY » May 07, 2007 11:44 pm

It's putting something in my temp folder, but like I said earlier eventhough I get the 'Upload Failed!' on the pop-up. I close the pop-up and notice that the actual 'upload_form.html' is still uploading. It will complete the upload and I will notice the file in my 'Uploads' directory. It's very strange.

DKY
Posts: 8
Joined: May 01, 2007 12:56 am

#25 Postby DKY » May 08, 2007 12:16 am

I did notice that when you told me to find

Code: Select all

print"<Script>SP($size,$time,$speed,$files_uploaded,$time_left);</Script>";

above I couldn't find it but instead I found

Code: Select all

print"<Script>SP($size,$time,$speed,0,$time_left);</Script>";


So, I took

Code: Select all

print"<Script>SP($size,$time,$speed,0,$time_left);</Script>";

and replaced it with

Code: Select all

print"<Script>SP($size,$time,$speed,$files_uploaded,$time_left);</Script>";

to find that it looks like it at least tries to start the progress but still gives me an upload failed error. And I still find the file uploaded in my Uploads directory. Could this have something to do with it?

BTW,
Here's the locale of my upload page
http://vcob.org/upload_form.html

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#26 Postby PilgrimX182 » May 08, 2007 5:19 am

You should give me URL in the first post. I've made 'upload' iframe visible and got 'Connection closed by remote server'. So it looks like your server kill script somehow. Maybe cause upload size limit, maybe cause time limit.
I tested 3 times on 3 different mp3s - always got this error after uploading 160Kb.

DKY
Posts: 8
Joined: May 01, 2007 12:56 am

#27 Postby DKY » May 08, 2007 12:04 pm

I removed everything I did in the first post and tried to do install it again thinking maybe I didn't chmod something or maybe I forgot a step. I can do whatever you like to this but as it stands it is a default install. Would you like me to do the edits talked about above and then give you the link?

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#28 Postby PilgrimX182 » May 08, 2007 12:21 pm

Once again: it's not XUpload script error, it's your server brake connection somehow. Contact support or admin of the server.

DKY
Posts: 8
Joined: May 01, 2007 12:56 am

#29 Postby DKY » May 08, 2007 12:23 pm

I guess cause I'm unsure about all of this, I don't know what to tell them. Just tell them it's not working and they're breaking the connection and they'll figure it out?

User avatar
PilgrimX182
Posts: 2182
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#30 Postby PilgrimX182 » May 08, 2007 12:25 pm

Just ask them if there are any time or upload size limitation for CGI scripts.


Return to “XUpload”

Who is online

Users browsing this forum: No registered users and 1 guest