Hi,

Usually the file should be copied into 
<GEOSERVER_DATA_DIR>/data/<coverageStoreName>

How are you running GeoServer? And how is the GEOSERVER_DATA_DIR set? 
Are you running standalone jetty or with tomcat? The way the data dir 
gets set in a servlet container is a bit different and thinking about it 
it could lead to files being copied to different places.

The place in the code where this is handled is in the 
StoreFileResource#handleFileUpload() method.

http://svn.codehaus.org/geoserver/trunk/src/extension/restconfig/src/main/java/org/geoserver/catalog/rest/StoreFileResource.java

-Justin

jb6969 wrote:
> hello justin, I have a problem when I try to upload a geotiff for example
> with rest, in a java class(I don't use curl)
> Everything is working fine except that my file.geotiff is not copied in the
> geoserver_data_dri/coverageName/ but directly in geoserver_data_dir. I tried
> out to see in the  rest api code but I don t find anything on this subject.
> Could you help me ?
> 
> 
> samclemmens wrote:
>> Hi,
>>
>> Can someone please tell me how to upload a Shapefile using cURL and the
>> REST plugin?  I've tried the few examples on the GeoServer site, but
>> nothing seems to work...  Once I do upload a Shapefile to GeoServer, in
>> which directory should the file be?
>>
>> Thanks,
>>
>> Sam
>>
> 

-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to