Error when previewing one file then uploading a different

Image previewer add-on.
Post Reply
jharter
Posts: 4
Joined: Mon Oct 21, 2013 7:59 pm

Error when previewing one file then uploading a different

Post by jharter »

Hello,

JFileUpload 3.2
JImageUpload 3.2
(JSAPI, iFilter, etc. are all configured and installed as well)
MaxFiles : 1

Is there a known fix to the following issue:

The user drags and drops a file to the upload window. The user clicks the 'x' on the image, then the user drags a different file and tries to upload that file. When this happens the following appears in the log:
[DEBUG] HTTPUploadTransfer - jfileupload.transfer.client.core.L: max files exceeded
[INFO] HTTPUploadTransfer - Upload failed - Files requirements

If I increase the number of max files to 2 then it will work for clicking the 'x' on one file, but if I click it for two different files then I get the same error on the third file , etc. I want to only allow one file at a time though, and I want the user to be able to use the 'x' on the image. How can I accomplish this?

Thanks.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Error when previewing one file then uploading a differen

Post by support »

We're going to check, you might have found a bug with "maxfiles" parameter for JImageUpload.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Error when previewing one file then uploading a differen

Post by support »

Are you using the following parameter?
<PARAM NAME="param2" VALUE="relativefilename">
<PARAM NAME="value2" VALUE="true">

If so try to remove it and see if it's better.

There is a problem with this parameter because it tries to keep folder(s) structure when adding folders (including images) to upload.

tazy
Posts: 1
Joined: Mon Dec 01, 2014 6:57 am

Re: Error when previewing one file then uploading a differen

Post by tazy »

Thank you, working fine! :P

Post Reply