maloja icon indicating copy to clipboard operation
maloja copied to clipboard

Can't update album art by drag-and-dropping

Open pncht opened this issue 3 years ago • 1 comments

Expected behavior: drag and dropped album/artist art should replace currently empty album art Actual behavior: drag-and-dropped album/artist art does not appear Steps to replicate: (1) log into admin panel, (2) activate admin mode, (3) go to any artist or track page, (4) attempt to change image by drag and dropping. This was tested on Firefox 103.0, and I am neither able to add new images nor replace existing ones. Is it possible to upload images through the system file picker, or save them in some specific directory in the filesystem? Thanks. vokoscreen-2022-08-08_05-37-29

pncht avatar Aug 08 '22 09:08 pncht

Could you open the dev console and see what it says when you're trying to upload?

Manually, you can place images in the data folder under images/tracks or images/artists, according to these rules.

krateng avatar Aug 15 '22 15:08 krateng

Having this same issue. Here's the error I get in my console

Uncaught TypeError: FileReader.readAsArrayBuffer: Argument 1 is not an object.
    readImageFile https://scrobble.hailsatan.xyz/neopolitan.js:30
    EventHandlerNonNull* https://scrobble.hailsatan.xyz/neopolitan.js:37
    EventListener.handleEvent* https://scrobble.hailsatan.xyz/neopolitan.js:37
[neopolitan.js:30:219](https://scrobble.hailsatan.xyz/neopolitan.js)
    readImageFile https://scrobble.hailsatan.xyz/neopolitan.js:30
    (Async: EventHandlerNonNull)
    <anonymous> https://scrobble.hailsatan.xyz/neopolitan.js:37
    (Async: EventListener.handleEvent)
    <anonymous> https://scrobble.hailsatan.xyz/neopolitan.js:37

domainzero avatar Nov 01 '22 14:11 domainzero

Is this happening with all image files? Different formats etc.?

krateng avatar Nov 01 '22 16:11 krateng

It looks like this might just happen if you try to drag an image from a browser (i.e. image open in another tab) vs. an image from the local filesystem.

p.s. thank you so much for maloja, I've been using it for over a year now and very much appreciate your work. Thank you for maloja!

domainzero avatar Nov 01 '22 18:11 domainzero

Ah, I didn't actually specify that in the docs - yes, this only works for uploading from the filesystem.

krateng avatar Nov 01 '22 18:11 krateng