-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content type missing in multipart post #2864
Comments
The If you are using Javascript it may be easier to use the https://github.com/ethersphere/bee-js library which provides convenient wrapper functions around the API so that you don't have to deal with details like this. |
Thanks. I understand the browser should set the content types automatically when using a multipart form but when I look at the POST it doesn’t seem to - can I force this? |
The
The However this is not really related to Bee itself, but rather how to correctly create |
Hi, i'm trying to POST formData to Bee from a Vue app and i get:
DEBU[2022-03-25T19:28:50Z] bzz upload dir: store dir err: read tar stream: content-type missing
ERRO[2022-03-25T19:28:50Z] bzz upload dir: store dir
const response = await this.$http.post(
${this.$config.BZZ_ENDPOINT}/bzz
, formData, {headers: {'swarm-postage-batch-id':'xxx','Content-Type':'multipart/form-data'}})
Any help appreciated.
The text was updated successfully, but these errors were encountered: