If you would like to upload files, you have the following options:
-
Upload single file as binary array.
-
Upload multiple files as part of HTML form data.
Upload single file as binary array
If you would like to upload single file as binary array, follow this procedure:
-
Enter execution URL and possible request headers.
-
Select appropriate HTTP method, for example, POST.
-
Select Single file contents as binary array from the upload data type drop down.
-
Select appropriate content type, for example, if you would like to upload a PNG image, select image/png.
-
Enter disk path to the file you would like to upload.
-
Execute the request tab and wait until the upload completes.
Upload multiple files as part of HTML form data
If you would like to upload multiple files as part of HTML form data, follow this procedure:
-
Enter execution URL and possible request headers.
-
Select appropriate HTTP method, for example, POST.
-
Select Multipart form (HTML form with files) from the upload data type drop down.
-
Select multipart/form-data content type from the content type drop down.
-
Enter HTML form data items by entering each element on a separate line. For files specify their disk path and optionally content type; content type can be specified by entering it after the file disk path and separate both with a vertical bar.
-
Execute the request tab and wait until the upload completes. The upload process will include all data elements with valid file path as files; others will be included as plain text data.