Oh, I see. Are you sending Content-Type in the request? It seems to be returning null.

Reply to this note

Please Login to reply.

Discussion

If you send the Content-Type header in the request it should work 👍

Gossip doesn't know the content type. It just opened the file and sent it. I suppose I could add content type sniffing. But anyhow you should change that to a 4xx error

Hmm, somehow noStrudel, 0xchat, Olas, etc are all sending the content-type header some way 🤔

Yea it's 5XX'ing due to no handling of missing content-type header haha. I will add it. But, maybe see how noStrudel handles it?

Whoops, that's for using HEAD, but also applies to the PUT for /upload

Let me know if you think you can pass this header in the request. Otherwise, I could see if I can infer it through extension.

I'm now sending the content-type and the content-length.