Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By andreaadamczyk
#817501
Hello Shalini,

This error seems to be due to that the file can't be found.

You could use "form-data" option instead of "raw" to upload the file.

Let me know how it goes.

Thank you.

Best regards.
By andreaadamczyk
#817505
Please, make sure the form variable is set as file so you can upload it from your computer:
Attachments
Screenshot from 2018-10-24 13-42-59.png
Screenshot from 2018-10-24 13-42-59.png (5 KiB) Viewed 4449 times
User avatar
By amosbatto
#817556
To send a file via Postman, see:
https://stackoverflow.com/questions/160 ... ta-request

If you can't get it to work, then I wouldn't recommend wasting much time with Postman, since you are still going to have to write code to send the file to the REST endpoint. It is much easier if you are using PHP.

If you are using JavaScript to call the endpoint, then you are going to have to convert the file into Base64 in order to be able to send the file in JSON. See: https://stackoverflow.com/questions/362 ... javascript
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]