Uploading Documents to Parseur with API Call

Hello all!
I’m trying to upload a document to Parseur. I’m aware that there is a “Upload a Document” module, but it does not give me the option to pass custom parameters, which should be possible according to the Parseur API. I’m trying to utilize the “Make an API call” module, but I do not know how to POST the attachment to Parseur. Is there anybody familiar with Parseur who could help me out?

Thank you.

Parseur’s “Make an API Call” module does not allow changing the request body to multipart/form-data which is necessary to pass file in binary form.

Use the HTTP request module instead.
Please find the attached configuration below.

If you need further assistance, please tell us more about the source module.


Parseur1.json (12.6 KB)

3 Likes

Hi @Muckael,

Welcome to the Make community!

It seems like you are trying to POST an attachment with the .pdf file inside the body. I am not familiar with Parseur, but this will not work. Is the Content-Type header set to ‘application/x-www-form-urlencoded’? Mind you that the HTTP protocal transports files as binary.

Here is some more info about Parseur and the RFC reference for the file upload that is used:

Please, follow these steps when asking a question, and you’ll be more likely to get a helpful answer:

:writing_hand: Give us a detailed explanation of what you’re trying to achieve

:footprints: Tell us about any steps you’ve tried so far

:camera_flash: Include screenshots of:

  • your scenario flow and setup (functions, mappings, variables, etc.)

  • module configurations and outputs

  • any error messages you are getting

:card_file_box: Share the blueprint of the scenario you are asking a question about. (this does not contain any connection or personal information)

Henk
Certified Make Expert and Partner

Hi @mszymkowiak @Henk-Operative, thank you for recommending the HTTP module, I got it to work now!

3 Likes