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

jQuery(...).filedrop is not a function with jQuery 3.1.1 #185

Open
jmchauv opened this issue Jan 16, 2017 · 10 comments
Open

jQuery(...).filedrop is not a function with jQuery 3.1.1 #185

jmchauv opened this issue Jan 16, 2017 · 10 comments

Comments

@jmchauv
Copy link

jmchauv commented Jan 16, 2017

Is there a fix for this? I am upgrading from jQuery 1.7.2 to 3.1.1 and am receiving this error:

jQuery(...).filedrop is not a function

@Dolgovec
Copy link

Dolgovec commented May 29, 2017

Found that problem too. The solution is:

  1. remove jQuery.event.props.push("dataTransfer");
  2. change e.dataTransfer to e.originalEvent.dataTransfer

good luck

upd: fixed in new file version already (v. is still 0.1.0)

@rickdatel
Copy link

I am having the same issue with jQuery 3.2.1 have tried to the fix above but its causing other

@mvpkenlin
Copy link

I am also having the same issue with JQuery 3.2.1.
Tried the above fix, but now it generate another error "Syntax error, unrecognized expression: #"

@ShawnJ013
Copy link

Hello I've tried this fix above as well, does any one have an update, I've been searching for a couple hours now, I'm working on a MVC 5, jquery-3.3.1 project, and I like the FileDrop.js function for its simplicity.

@alexd612
Copy link

Using JQuery 3.3.1 and tried the fix above and get

"Syntax error, unrecognized expression: #"

Any ideas?

@carlblanchard
Copy link

Add this reference then all will become good in the world....
<script src="https://code.jquery.com/jquery-migrate-3.0.1.js"></script>

@allac00
Copy link

allac00 commented Feb 13, 2019

im also facing this issue.
The solution
"* remove jQuery.event.props.push("dataTransfer");

  • change e.dataTransfer to e.originalEvent.dataTransfer"

also gives the next error: "Syntax error, unrecognized expression: #".

Adding the reference to jquery-migrate doesnt solve it either.

Please advise.

@alexd612
Copy link

alexd612 commented Feb 13, 2019 via email

@joshuafredrickson
Copy link

#186 fixes this issue if you're in a pinch.

@Nailuj2000
Copy link

Hi, i have made a fork and submit a pull request with solution to this error.
The error is when opt fallback_id is not set, then in filedrop.js the line 100 fail because $('#') is not a valid identifier
Solutions is move these block into " if ( opts.fallback_dropzoneClick === true )"
or setting the option 'fallback_id' to any existing element
or simply check if fallback_id is set

:)

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

10 participants