POST'ing a file in a REST process

I have a (simple) REST process which required a file parameter (datatype = File). When I try this call in Postman, I get a 400 error (bad request), see below and how the process parameter is set in the REST process:

I can’t figure out why I always receive this 400-error, no matter the file, its’ size or type.

A great reward for the genius that pushes me in the right direction! :trophy:

Hi David,

I consulted with the mastermind behind the Rest plugin, @m.gechev. Currently, it is not possible to POST a file directly to Novulo. If this functionality is required, please create a Novulo Service Request (SR).

In other applications, we use base64 strings to upload files. Your parameters for the process will look like this:

Within the architect process, you can create a file from this base64 string using the FileExtensions plugin’s FileFromBase64Action process. This process will return the file that you can use for the import.

Best regards,
Aimée

1 Like

Thanks Aimee, I think we can make it work with the proposed solution, but IMO it’s not a real solution, because it’s a ‘standard’ functionality in REST calls. I’ll create a SR for this! :+1:

1 Like