Skip to main content
Solved

How can I upload file to the cloud distribution point?

  • May 8, 2018
  • 3 replies
  • 44 views

Forum|alt.badge.img+6

Hello All,
I'd like to upload a file to the cloud distribution point(Jamf Cloud Distribution Service) with CUI(Command line User Interface).

I tried uploading a file by executing the following API.

curl -u username:password --tlsv1 --header Accept:application/zip --header Content-Type:application/zip --header FILE_TYPE: 0 --header FILE_NAME:zip_test.zip --header DESTINATION: 1 --header OBJECT_ID: 113 --data @/Users/username/Desktop/test/zip_test.zip --request POST https://mydomain/dbfileupload

And then, When I checked the package in Jamf Admin Application,
"Filename" and "Chekcsum" are displayed, but "Type" is "Missing" and the package file can not be downloaded.

Is the API parameter incorrect?

I would like some information.

Best answer by Yamashiro

I was able to upload a package to the cloud distribution point(Jamf Cloud Distribution Service) by doing the following.

curl -u username:password -X POST https://mydomain/dbfileupload -H 'DESTINATION: 0' -H 'OBJECT_ID: -1' -H 'FILE_TYPE: 0' -H 'FILE_NAME: test.pkg' -T '/Users/username/test.pkg'

3 replies

mm2270
Forum|alt.badge.img+24
  • Legendary Contributor
  • May 8, 2018

Hi. This was already discussed briefly on this thread from a few weeks ago. I suggest checking there.
The short answer is, it doesn't look like it's possible to upload a package to the JCDS via the API.


Forum|alt.badge.img+6
  • Author
  • Contributor
  • May 9, 2018

Thanks! @mm2270 I would like to confirm the thread that answered.


Forum|alt.badge.img+6
  • Author
  • Contributor
  • Answer
  • May 10, 2018

I was able to upload a package to the cloud distribution point(Jamf Cloud Distribution Service) by doing the following.

curl -u username:password -X POST https://mydomain/dbfileupload -H 'DESTINATION: 0' -H 'OBJECT_ID: -1' -H 'FILE_TYPE: 0' -H 'FILE_NAME: test.pkg' -T '/Users/username/test.pkg'