Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-8578

curl POST <html><body><error>Deployment tried with both 'packaging' and/or 'extension' being empty

    XMLWordPrintable

    Details

      Description

      curl POST command error, where 'nop006.scmf' is a binary file.
      I put the "file" before the "filename" but I am not sure about the syntax ???
      Anyone could help ?

      Thanks!

      curl -u admin:admin123 -X POST -H "Content-Type: application/json" -d \
      '{
      "r": "RSP", \
      "g": "CAS-82", \
      "a":"nop006.scmf", \
      "v":"1.0", \
      "p":"scmf", \
      "c":"scmf", \
      "e":"scmf", \
      [

      {"file":"/Users/dkiang/from-ws/nop006.scmf", "Content-Type":"application/octet-stream"}

      ], \
      "filename":"nop006.scmf"} \
      }' \
      http://trek:8081/nexus/service/local/artifact/maven/content

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dkiang Derek Kiang
            Last Updated By:
            Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title