Replying to Avatar hzrd149

nostr:npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6 nostr:npub1ktt8phjnkfmfrsxrgqpztdjuxk3x6psf80xyray0l3c7pyrln49qhkyhz0 I found a "bug" between the blossom cli and cherry-server

When I enable the mime type filter on the server to only accept images and I use the blossom cli to upload a .jpg image. the server returns a 415 error

I think this might be due to the blossom cli always sending the content-type header to "application/octet-stream"?

project links:

https://git.fiatjaf.com/blossom

https://github.com/0xtrr/cherry-server/issues

Oh, that was me being lazy. Will fix that to try to send the correct mimetype.

But it's also a bug on cherry-server since it shouldn't blindly believe the mimetype declared by the uploader.

Reply to this note

Please Login to reply.

Discussion

No replies yet.