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

Error if commandsOptions.upload.ui = 'uploadbutton' #1885

Closed
mhrabazei opened this issue Feb 3, 2017 · 5 comments
Closed

Error if commandsOptions.upload.ui = 'uploadbutton' #1885

mhrabazei opened this issue Feb 3, 2017 · 5 comments

Comments

@mhrabazei
Copy link

Hi.

I do it (#1747), but have:
Uncaught TypeError: Cannot read property '0' of null
at elFinder.commands.upload.exec (elfinder.full.js:22380)
at HTMLInputElement. (elfinder.full.js:15582)
at HTMLInputElement.dispatch (jquery.min.js:3)
at HTMLInputElement.q.handle (jquery.min.js:3)
after selected the file.

but if i change cmd.exec({input : _input.remove()[0]}); to cmd.exec({input : _input.remove()[0], target: cmd.fm.cwd().hash}); in elfinder.full.js:15582 the error not fire.

have You a better solution?)

@nao-pon
Copy link
Member

nao-pon commented Feb 3, 2017

@mgrabazey I checked on the latest elFinder -> http://jsbin.com/dulekip/edit?js,output

That was no problem. Please try elFinder 2.1.20 or nightly.

@mhrabazei
Copy link
Author

mhrabazei commented Feb 3, 2017

@nao-pon thanks for your time
I also use elFinder 2.1.20 but the error is still there
I will try to find the problem in my code

@mhrabazei
Copy link
Author

@nao-pon
Today I checked your code http://jsbin.com/dulekip/edit?output and saw the same problem
2017-02-04 15 34 53
please check again if you have time)
Thanks!

@nao-pon
Copy link
Member

nao-pon commented Feb 4, 2017

@mgrabazey Oh, You are right. I got it so I'll fix it.

@nao-pon nao-pon closed this as completed in bfaea53 Feb 4, 2017
@nao-pon
Copy link
Member

nao-pon commented Feb 4, 2017

@mgrabazey Thanks! 👍

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

No branches or pull requests

2 participants