AssetManager uploadFile not working when adding image via click #5189
-
I am using custom upload function to manage asset file upload to server. The event.dataTransfer is not passed when the user clicks on the asset manager to upload files. The functionality works fine when user drops the files on the container. Additionally, the inline documentation says I will have to emit events I am using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The example in the doc shows you how to get properly the file const file = event.dataTransfer?.files[0] || event.target.files[0]; |
Beta Was this translation helpful? Give feedback.
The example in the doc shows you how to get properly the file