Skip to content

Help with file uploads #19

Discussion options

You must be logged in to vote

Hi there!

Glad to hear you're using Nuxt API Party in production. I recommend you to read the How It Works section again to get a better understanding about how the Nuxt server route to proxy your request works.

In a nutshell: The request has to be serialized for the /api/__api_party route. Inside that route, we then construct the FormData to send to your actual API. Thus, adding multipart/form-data as Content-Type won't have any effect, since a JSON object is expected by /api/__api_party.

Having said that, I have added support for name if the Blob is indeed of type File: 6d20ca4#diff-16671b8e02b11955397ac6e8f00650f5dd3e959171b89942e20c9e6372f06776

Please test again with the latest versio…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mpringlehlk
Comment options

Answer selected by johannschopplich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants