max filesize error message

XUpload related questions

Moderator: admin

Message
Author
tommy
Posts: 9
Joined: Jun 23, 2007 1:12 pm

max filesize error message

#1 Postby tommy » Dec 08, 2007 8:08 pm

Hi!

I use the Tiny Upload template and all works fine, but if I select a file, that is too big, the upload progress bar doesn't start, and after a while (up to 30 minutes), I get the error message, that the file is to big.
Maybe, reason for that is that I POST the data to a custom php file??

What I want is, that I get this error message immediately after the upload starts.
any ideas?

tommy

hellotipi
Posts: 6
Joined: Feb 01, 2008 6:36 pm

#2 Postby hellotipi » Feb 06, 2008 2:05 pm

i am facing the same pb

In fact you get the error message for exceeded size once you've uploaded more than it

ie if you put the upload limit to 50 Mb, you get the msg once you've uploaded more than 50 Mb

PilgrimX182, is it possible to have a check before the upload starts?

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

#3 Postby PilgrimX182 » Feb 07, 2008 10:47 am

XUpload 3?
In upload_status.cgi find line

Code: Select all

my $percent = sprintf("%.1f",100*$current/$total);

and replace it with

Code: Select all

my $percent = sprintf("%.1f",100*$current/$total) if $total>0;


Should help.


Return to “XUpload”

Who is online

Users browsing this forum: No registered users and 0 guests