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

Immediately uploads when you click the button. #10

Open
Edwin-Luijten opened this issue Jun 26, 2020 · 3 comments
Open

Immediately uploads when you click the button. #10

Edwin-Luijten opened this issue Jun 26, 2020 · 3 comments

Comments

@Edwin-Luijten
Copy link

Edwin-Luijten commented Jun 26, 2020

I would expect it to popup a window to select files to upload. But instead it directly calls the upload endpoint.

@groteworld
Copy link

Also getting this issue. @Edwin-Luijten were you able to fix this?

@groteworld
Copy link

I figured out this issue for people in the future (at least this fixed my issue). If you are going to extend the base AttachesTool, like in #5, you must call @codexteam/ajax's .selectFiles()or .transport() function to open the OS's file selection tool. This will stop execution of the uploadSelectedFile function you're overriding until the promise returns. You may be able to use other js API's to open this selection tool, but this is at least what worked for me.

@neSpecc
Copy link
Contributor

neSpecc commented Jul 19, 2022

Is this problem still actual?

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

3 participants