Custom app HTTP put example

Hi all,

I’m trying to create a custom app with multiple http calls, but I always get a 400 error when I want to upload a file with a put method.
I can successfully upload the file when I make use of the HTTP module.

This is a screenshot of a successful upload with HTTP module:

This is what I tried in my custom app, but it fails with a 400 error:

“url”: “{{get(temp.getSubmitUrls,'uploadLinks.url)}}”,
“method”: “PUT”,
“hearders”: {
“Content-Type”: “application/pdf”,
“x-ms-blob-type”: “BlockBlob”
},
“body”: “binary-data”

Does anyone know what I need to change in the above code?

Thanks!

Welcome to the Make community!

Perhaps a spelling mistake?

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

Already checked for spelling mistakes. Do you maybe have a PUT example with file upload for me?

Thanks. Sorry, I indeed had typo in this example, but this was not the case during testing:

image

It is solved now. I had multiple http calls in the same module which requires authentication and the http (put) file upload call does not require authentication, which caused the 400 error.

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.