Hello, I would like to send a file via the http.rest module. Do you have a resource on the subject? Thanks
Hello @abeguin and thanks for reaching our Forum!You can follow this detailed solution:How to use POST multipart/form-data API in mappingThanks
Hi,
Can you detail furthermore your action?
- you want to send http in the input parameter of the API, or to send a file in the response
- what is the file format,
- which method (get, post...),
- is there authentication,
Did you have already a test case in Postman for example?
Best regards,
Thanks for your response.
I want to send in the input parameter a png file.
I use put method with basic auth.
I succeeded with Postman.
this the cURL code generate by postman :
PUT /wiki/rest/api/content/19234839/child/attachment HTTP/1.1 Host: {{mydomain}} X-Atlassian-Token: nocheck Authorization: Basic {{token}} Content-Length: 205 Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW ------WebKitFormBoundary7MA4YWxkTrZu0gW Content-Disposition: form-data; name="file"; filename="filename.png" Content-Type: image/png (data) ------WebKitFormBoundary7MA4YWxkTrZu0gW--
And http code generate by postman :
curl --location --request PUT "https://{{mydomain}}/wiki/rest/api/content/19234839/child/attachment" --header "X-Atlassian-Token: nocheck" --header "Authorization: Basic {{token}}" --form "file=@\"filename.png\""
Alain Béguin
Hello,
I would like to send a file via the http.rest module. Do you have a resource on the subject? Thanks
Hello @abeguin and thanks for reaching our Forum!
You can follow this detailed solution:
How to use POST multipart/form-data API in mapping
Thanks
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstMathias Bonnargent
Hi,
Can you detail furthermore your action?
- you want to send http in the input parameter of the API, or to send a file in the response
- what is the file format,
- which method (get, post...),
- is there authentication,
Did you have already a test case in Postman for example?
Best regards,
Alain Béguin
Hi,
Thanks for your response.
I want to send in the input parameter a png file.
I use put method with basic auth.
I succeeded with Postman.
this the cURL code generate by postman :
And http code generate by postman :
Best regards,
Cécile FRANCHINI
Hello @abeguin and thanks for reaching our Forum!
You can follow this detailed solution:
How to use POST multipart/form-data API in mapping
Thanks
-
File external resolver with encrypted value
-
Timeout on Mapping/Webservice call
-
UNIQUE TEMP TABLE NAMES
-
Previous step name from a sub-process of execute delivery
-
Dropping multiple tables at once in XDI
-
Freeze Designer and corrupted workspace
-
FileWait/Move/Copy: FileInclude with space
-
Loop excel files
-
Change SVN user in the Designer
-
How to Specify the JVM used by the Designer?
See all 64 topics