Question

How do I PUT a file via webhook without multipart/form-data

  • 14 November 2023
  • 3 replies
  • 253 views

I’m trying to PUT a single file via webhook and using the file field for that purpose. Description says

A file object to be attached to the request. The request will automatically be converted to multipart/form-data, with the above payload type defining the sub content-type for the data being passed.

However, I don’t need multipart/form-data

Can a get rid of it?

Is there a way to send a file similar to what Postman does: (Content-Type: application/zip or application/pdf) ?


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Userlevel 7
Badge +14

Hi @Mixed Fitness 

Good question.

Which API doc endpoint are you referencing to configure your Zap action step?

Can you post screenshots with how your Zap action step is configured to help give us more context?

The configuration is pretty straightforward:

 

API: Upload file to the Azure Blob storage

https://learn.microsoft.com/en-us/rest/api/storageservices/put-blob?#request

Tried payload type “form”, same result.

 

Thanks

Userlevel 7
Badge +14

@Mixed Fitness 

Perhaps try using this Zap actions: Webhook - Custom Request (PUT)