← Back to team overview

dhis2-devs team mailing list archive

Re: Where do I place the metadata file when uploading

 

Hi Moses,

you have a space too much between @ and the file, should be:

-d @metaData.xml

File can be in the same directory as you invoke the command.

Lars



On Fri, Sep 11, 2015 at 1:04 PM, moses mwale <isoftcom.ic@xxxxxxxxx> wrote:

> hello,
>
> Where do I place or put the metadata file when uploading, when using curl.
>
> curl -H "Content-type: Application/xml" -u admin:district -d @
> metaData.xml "http://localhost:8082/api/metaData"; -X POST -v
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
http://www.dhis2.org <https://www.dhis2.org>

References