Forums

How do I set file size limits in new 3.0 version

rustyDusty 18 Oct, 2008
In the older Chrono forms versions there was a window where you could set the file size limit. That was a nicer, simpler method.

With the latest version I don't know how to do this.Its confusing.

This is what I have in the "file name" window
Upload:jpg|gif|doc|zip|txt|jpeg|JPG|zip|rar|min_size=30mb|max_size=1gb,

What can I change it to in order to avoid the

Sorry, Your uploaded file size exceeds the allowed limit.

message?
GreyHead 18 Oct, 2008
Hi rustyDusty,

Field names & allowed Extensions & sizes(KB) for each:
E.g: file_2:jpg|doc|zip{222222-1},file_3:gz|zip{99999999-0}
extensions should be in low case!

So you need to have
Upload:jpg|gif|doc|zip|txt|jpeg|rar{1000000-3000}

Bob

PS Those are enormous files - do you really mean a minimum of 3Mb???
rustyDusty 18 Oct, 2008
I'm sorry I don't understand what the {222222-1} and {99999999-0} codes mean? Why can't we just put a number followed by an abbreviation like before?

Lets say I want to make sure that a file's minimum size is 5kb and its max size is 30MB. What code am I supposed to put there? Also do you number the files (file_3:) for multiple upload interfaces?

Feeling like a newbie...Oh wait I am!
GreyHead 19 Oct, 2008
Hi RustyDusty,

As the example says the codes are {max_size-min_size} in kb

For "file's minimum size is 5kb and its max size is 30MB" that would be {30000-5}

You can't use the old notation because Max has changed it to a new version. In part this is to allow different limits for each 'upload interface'.

You use the field_name to identify each each 'upload interface', this is unchanged.

So the structure is field_name : pipe separated array of file types { max_size - min_size} but written without spaces and with the file types in lower case exactly as in the example.

Bob
sophy978 03 Apr, 2009
Hello I am having a simialr problem with the File Upload. I've followed the thread, still getting the 'Sorry, Your uploaded file size exceeds the allowed limit' regardless of my file size.

I've followed the pdf tutorial exactly. Checked my Joomla System->PHP configurations. File Upload is set to On. Max file size is 20M.

Using Joomla 1.5.7. I am alsoin the process of upgrading to 1.5.9 soon.
Using Chronoforms V3.0

In the File Uploads Tab:
Enable Uploads: Yes
file_30:doc|jpg|gif|zip|pdf|txt,{12000-0}

I've tried various files from 16KB to 10,000KB. I keep getting the error regardless. All the form entries are lost. It would be nice also to preserve the form entries if I get this error.

Please help. Thanks in advance!
GreyHead 03 Apr, 2009
Hi sophy978,

Please try removong the comma after text, a comma marks the next upload field so ChronoForms probably isn't seeing your file limits.

Bob
sophy978 06 Apr, 2009
Hi Bob,

Yup that did the trick. It was the comma that was causing the problems. Thanks! 😀

-Sophy
Romain 08 May, 2009
I use the chrono forms components, and i have put this code on my form for File upload :
file_1:jpg|tif|tiff|psd|ai|doc|docx|xls|xlsx|mp3|wav|aif|pgp|pzp|au|tmp|aud|mp4|pdf|ps|ttf|zip|gz|rar|dss{99999999-0}
and i still have the error message : "Sorry, Your uploaded file size exceeds the allowed limit"
Someone can help
Romain
Max_admin 10 May, 2009
Hi Romain,

Which Chronoforms version ?

I think that here, the file exceeds the allowed PHP limit but not the Chronoforms limit, check your PHP limit and test a file with size less than that!

Cheers
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
ogosensedan 22 Oct, 2009
Hello everyone,

Just wanted to comment this a little bit. While this solution is perfectly ok, there is a little bit of ambiguousness in the explanation provided in the form backend.

Namely, rustydusty was confused just as I was because explanation provided said {222-1} and {99-0}, instead of {maxSize-minSize} (as you explained here in the forum). One could easily think of {222-1} as 222KB-1MB, even though there is a "KB" mentioned in explanation.

While this forum post cleared my doubts, this is still a recommendation for future versions (and I might be too slow, and present version have this corrected. In that case I apologize).

Best,
Dan
This topic is locked and no more replies can be posted.