Uploading a File to a REST Endpoint URL
You can upload a file to a REST endpoint URL as a part of the REST API call.
To pass a file as an input to REST V2 connector, you must set the content-type to multipart/form-data in the request. Use one of the following methods to pass a file as an input:
- •Specify the complete file path as value in the source. Used for any file formats.
- •Pass the Base64 encoded value of the file in the source. Used for file formats, such as .pdf, .jpg, .xls, and .doc. The length of the Base64 encoded value must not exceed 65535 characters.
- •Pass the file value as string in the source. Used for plain text file formats, such as .txt, .JSON, and .xml. The file size must not exceed 65535 characters.