You can upload files using API, in the body of the POST method we have to send the file.
For example purpose, we will be using the below API endpoint to upload the files: https://chercher.tech/sample/upload.php
You can verify the file upload by visiting the below URL ( all files deleted every day): https://chercher.tech/sample/files-uploaded/
The file I am trying to upload is :
Once you fill the API endpoint for the POST method, go to Body and select Form-data and provide the below details.
KEY : filename and File as type
VALUE : select the file to be uploaded
Description : Not Required.
Once you fill the details click on Send button.