Replying to Avatar nostr.build

Blossom is quickly becoming a standard for media hosting, and now nostr.build supports it with https://blossom.band

There may still be some kinks or bugs, so please let us know if you run into any.

It works with our free uploads and paid accounts.

This is a β€˜soft launch’ more details will be coming this week, enjoy!

nostr:note1cyphwqqzp794m6d3a0kw7lgvz748sqxhxp8m9gprpln0psjxl72q63c32h

Test

Reply to this note

Please Login to reply.

Discussion

Test worked! πŸ˜‚πŸ˜‚πŸ˜‚

This one worked. On an initial test I got this.

I was attempting to upload a PNG.

What client are you using?

Amethyst

Can you try a couple more .png files and .jpg files just to see if it is a file type thing? We’ll break out our Android device also 🀣

This may be because your png is really a jpg by Amethyst thinks it’s a png because the extension. nostr:npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z might can fix

Fixed already on our side, relaxing the check a little 🫑

nostr:npub1gcxzte5zlkncx26j68ez60fzkvtkm9e0vrwdcvsjakxf9mu9qewqlfnj5z I had the same problem with jpeg that had gif extension. Since we check mime based on file content, we find the true mime not based on extension. Are you able to ID the file mime correctly before posting? I can relax this check for now, but would be good to have proper content-type header from the client

hum... I don't know.. I just use the mimetype that Android gives me. Only if that fails I get from the extension. It's probably never going to be super reliable. πŸ€”

I will do some research to see if we can improve this somehow. Maybe there is a lib somewhere.

Also: Do you guys take encrypted files? We need more providers for our DM uploads.

For now I will try to only match the first part of mime, so it’ll be easier on clients.

As for encrypted blobs, not yet, still need to iron out a few issues. Thanks!

It's a png

Hmm, I wonder if there is an issue with how we detect it πŸ˜‚

Can you try now, I relaxed the checking a little

Works πŸ‘

Ok, note that it is indeed a JPEG and not PNG

Yes, we found a bug with Amethyst πŸ˜‚πŸ«‚πŸ”₯πŸš€

Try:

xxd -l 8 your_image.png

The first 8 bytes should be: 89 50 4E 47 0D 0A 1A 0A for PNG and JPEGs typically start with FF D8 FF.