Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants