File uploading

Hello,

I have a module in a custom app that includes a parameter of type file, as the API requires this parameter to be of type file, not string. Because of this, I am unable to send both the data and the name of the file.

Is it possible to send the file as a pdf? If so, how can I do this?


Hi @Zainab_Fitian,

Type ‘file’ is not the correct parameter to use, as you can see, this offers an upload button to search for a file locally. Try the buffer parameter (in combination with ‘filename’: Make.com - Custom App Documentation

Cheers,
Henk

Thank you @Henk-Operative for your answer.
I tried using the buffer parameter but I still get an error.

It might be because in the original swagger the type of the parameter is “File” ?


I’m unsure how to handle this properly. Any advice on how to proceed would be greatly appreciated.

A 404 points to something else entirely, namely that the resource you try to reach cannot be found. (page non trouvée). The first step in solving your problem is checking the endpoint you are POST-ing data to.

Then you can check the payload, where think you don’t need to nest the file inside a collection.

Cheers,
Henk

Hello @Henk-Operative,
There was an issue with the domain name.
After resolving the issue I tried again and still having issues in uploading the file
please check my topic : Error [500] "Call to a Member Function getName() on Null" in Custom App Module for Invoice Upload
thank you

I will close this topic and send a response there.

2 Likes