Hi!
I'm using GeoServer 2.14.0 and I am trying to upload a couple of css and png 
files to the workspace. For that purpose, I'm using the /resource/ rest API. 
The files are uploaded - they are saved at the right place, they are getting 
the right file name, but their content is mangled. It seems that they are saved 
together with their multipart web-envelope:
--4aeb5300728e29c5bb0af8225aa3b225
Content-Disposition: form-data; name="icon2"; filename="icon2.png"

.PNG
{the rest of the png binary file}
--4aeb5300728e29c5bb0af8225aa3b225--
The same happens with css files, so none of them can be really used. If I edit 
the file and remove that leading and trailing text, the file works perfectly.
For upload I have tried reading files as binary and as ascii, tried to set all 
sorts of content types, from mime detected, generic text/plain (for css) or 
generic application/octet-stream for binary files and, of course, 
multipart/form-data. Also without that kind of a header. I have tried upload 
with curl as well, to exclude my code. I have also tried to perform the same 
operation on GeoServer 2.13.2, but sadly, always with same results. What am I 
doing wrong, can't believe that this is a bug nobody saw before?

Cheers!

_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to