mautrung09 / jquery-multifile-plugin

Automatically exported from code.google.com/p/jquery-multifile-plugin
0 stars 0 forks source link

Validate duplicate files per form, not per MultiFile #102

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. build a web form with 2 or more File Uploads
2. in the onFileSelect, add validation that no file name may be repeated in any 
other MultiFile on the same form.
3. add any pdf in one MultiFile, then add the same file to the other MultiFile.

What is the expected output? What do you see instead?
  When it's a repeated file in the same MultiFile, validation works fine, and the file upload is reset.  If you add the file to the other file upload, the onFileSelect javascript works, returns false and the file upload is cleared.  However, the file is still added!

What version of the plugin/jQuery are you using?
PLUGIN VERSION: 1.4.7
JQUERY VERSION: 1.4.4

On what browser(s) or operating system?
BROWSER(S): IE6 & IE7

Please provide a link to where the problem can be observed:
URL:  Sorry... internal.

Feel free to provide any additional information below.
  This is the abbreviated onFileSelect for the 2nd MultiFile:

onFileSelect: function(element, value, master_element) {
  if(fileValidation()==false) {
     this.reset;
  }
})

The fileValidation is simple javascript that checks the file names, and returns 
an alert and return false; if a file name is repeated.

I've tried:
  return fileValidation();
  this.reset & return false;

And many other variations, with no luck.

Any ideas?

Thanks, in advance!

Steve in NYC

Original issue reported on code.google.com by steve_co...@hotmail.com on 30 Nov 2010 at 10:36

GoogleCodeExporter commented 9 years ago
The project has been dormant for over a year and many of the support requests 
have been resolved and/or are invalid. So we're going to archive them all, 
pending review.

If you're still having a problem with the plugin, please visit the project page 
and re-open the issue. We do apologize for any inconvenience this may cause, 
but please bear with us...  we'll be making improvements to the plugin and its 
documentation over the coming weeks.

Stay tuned; and thanks for your support!

The Fyneworks Team
http://twitter.com/fyneworks

Original comment by fyneworks on 26 Jan 2012 at 1:37