Page 1 of 1

Error when previewing one file then uploading a different

Posted: Mon Oct 21, 2013 8:09 pm
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.

Re: Error when previewing one file then uploading a differen

Posted: Tue Oct 22, 2013 5:18 pm
by support
We're going to check, you might have found a bug with "maxfiles" parameter for JImageUpload.

Re: Error when previewing one file then uploading a differen

Posted: Fri Nov 01, 2013 1:43 pm
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.

Re: Error when previewing one file then uploading a differen

Posted: Mon Dec 01, 2014 6:58 am
by tazy
Thank you, working fine! :P