How can I adjust file upload size

jaatendi 06 Jan, 2011
I am using chronoforms 3, and am getting this message when I try to use my form:

Sorry, Your uploaded file size exceeds the allowed limit.


I checked out some of the other posts on this and didn't understand what people were talking about. I just want to be able to upload normal size smallish jpgs, pngs, and gifs. Please direct me in plain english. thanks
GreyHead 06 Jan, 2011
Hi jaatendi,

You can set the limit on the File Uploads tab in the Form Editor. The "Field names/allowed Extensions/sizes(KB)" takes an entry like file_1:jpg|png{222-1} where file_1 is the input name from the form html; jpg|png is a list of allowed file type suffixes separated by |; and 222-1 is the maximum and minimum allowed file sizes in KB.

Bob
jaatendi 19 Jan, 2011
Currently in the Field names/allowed Extensions/sizes(KB) field I have: file_8:{-}

I would like to accept all forms of images, including .psd, .ai, and .esp. If I wanted to allow file uploads of up to 50MB, what would I put in the field?

thanks,
Ev
Max_admin 19 Jan, 2011
Hi Ev,

That will not work, you must specify the allowed extensions as Bob noted, and also the maximum and minimum file sizes, 50 MB would be 50000

e.g: file_8:psd|ai|jpg|png{50000-1}

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
stanbush 07 Apr, 2011
I'm having a problem with this myself, but I think I have the size thing done correctly. I think it's something else. The file ID and name for the upload field are both 'file_1'.
If I use file_1:jpg|gif|jpeg{20000-1} in the chronoform upload tab... I get the error mesage "Sorry, Your uploaded file size exceeds the allowed limit."
any_other_filename:jpg|gif|jpeg{20000-1} doesn't give an error, but the image doesn't upload into the upload directory either.
Checked permissions on the server, and max_file size in php.ini. Also looked in htaccess file to see if there was a restriction there.
Any help would be appreciated.
GreyHead 07 Apr, 2011
Hi mags,

I took a look at the code and found that you will also see this error if the server reports a file upload error before ChronoForms processes it.

Please turn on Debug in the form General tab and see what is being reported there.

Bob
This topic is locked and no more replies can be posted.