XUpload - max filesize error message

Posts: 9
Joined: Jun 23, 2007 1:12 pm

max filesize error message

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


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?


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
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#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.