on 01-08-2021 3:00 AM
Hi Team,
I had a requirement to upload a file using upload collection . The File upload uses a REST API which accepts multiform data and CURL operation as below
curl --location --request POST 'https://xx.abc.testworkflow/fileupload/' \
--header 'Content-Type: multipart/form-data' \
--header 'Authorization: q5c5cb8c-af15-43c3-890-a9d748608k16' \
--form 'Files=@"/C:/Users/admin/Downloads/devDeployConfig.mtaext"' \
--form 'fileStoreTypeMap="{
\"devDeployConfig.mtaext\": {
\"fileType\": \"mtaext\",
\"fileContentType\": \"text/plain\"
}
}";type=application/json'
Added the header parameters as required in onBefore upload starts . one of the form parameter accepts the content of the file and other parameters accepts the object.
How would i add the add the Form parameters as part of multi form data using Upload collection .
Do i need to use another $.Ajax to post the above operations ?
Regards
Prasad
Hi
This is possible by using file uploader internally and set useMultipart = true (more details: API Reference - Demo Kit - SAPUI5 SDK)
Thanks,
Shalini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
8 | |
8 | |
8 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.