Skip to main content

Creating an Attachment to a Record Using cURL

How to Add an Attachment to a Record Using cURL

Written by Petr Pech

Commands:

curl -H "Accept: application/xml" -k -u uzivatel:heslo -X PUT -L https://url.cil:5434/c/jmeno_firmy/cenik/code:LAMPA1/prilohy/new/LAMPA1.jpg-T "c:\obrazky\LAMPA1.jpg" -H "Content-Type: image/jpeg"curl -H "Accept: application/xml" -k -u uzivatel:heslo -X PUT -L https://url.cil:5434/c/jmeno_firmy/cenik/code:LAMPA2/prilohy/new/LAMPA2.jpg-T "c:\obrazky\LAMPA2.jpg" -H "Content-Type: image/jpeg"

Curl.exe is a freely downloadable program

LAMPA2 is a price list item

"c:\obrazky\LAMPA2.jpg" is the path to the file you want to import

Did this answer your question?