Error when previewing one file then uploading a different

Image previewer add-on.

Error when previewing one file then uploading a different

Postby jharter » Mon Oct 21, 2013 8:09 pm

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.
jharter
 
Posts: 4
Joined: Mon Oct 21, 2013 7:59 pm

Re: Error when previewing one file then uploading a differen

Postby support » Tue Oct 22, 2013 5:18 pm

We're going to check, you might have found a bug with "maxfiles" parameter for JImageUpload.
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Re: Error when previewing one file then uploading a differen

Postby support » Fri Nov 01, 2013 1:43 pm

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.
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Re: Error when previewing one file then uploading a differen

Postby tazy » Mon Dec 01, 2014 6:58 am

Thank you, working fine! :P
tazy
 
Posts: 1
Joined: Mon Dec 01, 2014 6:57 am


Return to JImageUpload



cron

Sitemap | Privacy Statement | Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc.
in the U.S. and other countries. All other company and/or product names are the property of their respective owners.