wanderer icon indicating copy to clipboard operation
wanderer copied to clipboard

Feature request: allow drag and drop upload of images

Open garbast opened this issue 1 year ago • 8 comments

When i edit a track i would love to be able to upload multipled images at once via drag and drop upload.

garbast avatar Mar 17 '24 10:03 garbast

With the new release v0.2.0 you can now drag and drop photos into the photo section when creating/editing a trail.

Flomp avatar Mar 23 '24 19:03 Flomp

Does not work. When i drag an image in the browser a dashed border appears. On drop i receive an exceptions in the dev tools console:

DOMException: A requested file or directory could not be found at the time an operation was processed.

garbast avatar Mar 25 '24 08:03 garbast

I cannot replicate this issue. I tested all current browsers on both arm64 and amd64. Can you provide more detail (kind of file, os, browser etc.)?

Flomp avatar Mar 25 '24 10:03 Flomp

I cleared the browser cache and the error persists. As fare as i see the image do not get transfered. In the network tab no traffic gets triggered due to the drop of the image.

Chrome Version 123.0.6312.58 (Offizieller Build) (64-Bit) Ubuntu 22.04.4 LTS Image is a jpeg 2.9MB and attached 20240309_141612

garbast avatar Mar 25 '24 17:03 garbast

The image won't get uploaded before you save the trail. So it's definitely a client-side issue. I cannot replicate the issue with the attached photo either. Does it happen for all photos or just specific ones?

Flomp avatar Apr 07 '24 17:04 Flomp

I think, the problem is again the large file size as mentioned in the other ticket where you explained the problem with the backend size limit.

garbast avatar Apr 08 '24 18:04 garbast

I don't think so, because, as mentioned, there is no server-side communication whatsoever when you drag a photo over.

Flomp avatar Apr 09 '24 07:04 Flomp

You are right the error is locally. After some debugging, i can say, that it still happens with drag and drop but not with selecting via upload field and uploading that way.

All findings on google suggest that the error has something to do with the desktop i use. Im running Ubuntu 22.04 with gnome 42.9

I found an other tool, that drag and drop uploads, with the same error. https://github.com/transloadit/uppy/issues/3505 Maybe the change is something related to wanderer? https://github.com/transloadit/uppy/commit/65f255164594639797022f71e9779d1d7519214c

garbast avatar Apr 14 '24 14:04 garbast