Upload a PDF into an HTTP Post Module

Hi guys,

Hope you are well…Im uploading a PDF into an HTTP module with the method as POST

Here is what it looks like :


But when I run it im getting an error that the file is not a PDF even tho the URL end in .PDF?

Would appreciate any help!

Hi!

The multipart/form-data body can only be used with binary decoded files.

You must first add the HTTP “Get a File” module to download your PDF, and then you can map it with the HTTP “Make a Request” module.

Missing element:

Config:

Also- according to BankStatementConverter API documentation
you should use form file field key of “file”

SC_3

Hi, @mszymkowiak

Thanks so much! Appreciate it! I still get this error, but I assume that it is an error on bankstatementconverter.com’s side??

In most cases, yes, but always check the input data.

A 500 error occurs because the server cannot respond to the request, so it is crucial to thoroughly verify the transmitted data and ensure the query’s compliance with the documentation. Especially when there is no further details.

Please share input data- I will take a look.