[Dhis2-devs] Where do I place the metadata file when uploading

2015-09-11 Thread moses mwale
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@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Where do I place the metadata file when uploading

2015-09-11 Thread Lars Helge Ă˜verland
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  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@lists.launchpad.net
> 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 
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp