Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Conflict with jQuery File Upload #22

Open
bearded-avenger opened this issue Feb 15, 2017 · 1 comment
Open

Conflict with jQuery File Upload #22

bearded-avenger opened this issue Feb 15, 2017 · 1 comment

Comments

@bearded-avenger
Copy link

I've got jQuery File Upload on another file input that is uploading files directly to S3. When I drag and drop an image into EZDZ (does not happen when file is selected by clicking the drag area), it automatically triggers the file uploading on the other file input.

To clarify, the form has two file inputs, both with different names, classes, and ids. The only thing that makes them the same is that they are both input type="file". One file input is controlled by ezdz, the other by jQuery File Upload.

The only way I could get around this, was by disable, then enabling jQuery File Upload using ezdz events.

This is more of a heads up. Is there something I'm missing instead of this monkey patch?

		enter:  function() {
			$('.file-direct-upload').fileupload('disable');
		},
		accept: function(){
			$('.file-direct-upload').fileupload('enable');
		},
@jaysalvat
Copy link
Owner

Hello,

Ezdz has no real drag&drop feature. This is the native behavior of any input type file (except on IE).
So I doubt there is something I can do here.

If you provide a JSfiddle or something I could look at it one day.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants