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.

Reply to this note

Please Login to reply.

Discussion

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!