Making upload form of a file from web service to orchestrator bucket. (using PHP + CURL)
For first i got a dynamicly generated link to upload with GET request:
So - to upload file to a bucket i need to make a PUT request to link, that i got with previous one.
file is in $_FILES, and formated to object with CURLFile function and attached to POSTFIELDS of curl request.
The problem → nothing happening.
The response is:
What am I doing wrong? The file is in the correct destination. How i can set this path?
The code is bellow:
I also tried to change content-type to
multipart/form-data and add “” symbol to third argument - nothing changed.
The dynamic link is absolutely correct too.
Hope for help. Thank you.