How to transfer artifact (file) to artifactory using URI

Hi,

I try to make small improvement in my CI. Normally is done by REST API and curl, for example (https://www.jfrog.com/confluence/display/JFROG/Artifactory+REST+API)

curl -u myUser:ABcdEF -X PUT “http://localhost:8081/artifactory/my-repository/my/new/artifact/directory/file.txt” -T Desktop/myNewFile.txt

I did translation from CURL but I cannot transfer file like above

I tried with src flag and using body and form-multipart but without result. Could you help me with that?

Br,
Mateusz

Check out this comment, that describes how I was able to get this working:

https://github.com/ansible/ansible/pull/33689#issuecomment-376931243

Thanks a lot Matt :slight_smile: it’s working also in my env. I could ask many hours ago but the most important is that is working fine. You save my time, because I got wrong idea to take output from “shell: curl […]” and do logic for errors handling. Again: thanks and best wishes from Poland.