attaches icon indicating copy to clipboard operation
attaches copied to clipboard

Immediately uploads when you click the button.

Open Edwin-Luijten opened this issue 5 years ago • 3 comments

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

Edwin-Luijten avatar Jun 26 '20 14:06 Edwin-Luijten

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

groteworld avatar Dec 16 '20 21:12 groteworld

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.

groteworld avatar Dec 22 '20 16:12 groteworld

Is this problem still actual?

neSpecc avatar Jul 19 '22 21:07 neSpecc