All, I am trying to find a way for the users to upload files such as GeoTiff, kml, etc. from client machine onto GeoServer workspace and wondering whether I can use GeoServer REST PUT operation for that.
Below is an example of the REST PUT operation using curl taken from GeoServer's REST examples. curl -v -u admin:geoserver -XPUT -H "Content-type: application/zip" --data-binary @roads.zip http://localhost:8080/geoserver/rest/workspaces/acme/datastores/roads/file.shp I known that "@roads.zip" indicates the zip file to be uploaded. But where is the file? Is it it relative to some path? and what is the last line? Is it always "http://localhost:8080/geoserver"? I could not find any examples from the internet showing how to use REST PUT to upload files from client machine. Can some clarify this? If it can be done with GeoServer REST API, I greatly appreciated an example in curl. Many thanks in advance. Tam -- View this message in context: http://osgeo-org.1560.x6.nabble.com/REST-PUT-to-upload-files-from-client-machine-tp5103281.html Sent from the GeoServer - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users