Re: file extension changes on PUT

2009-11-19 Thread Matt Kennedy
Thierry, This work-around is perfect for my current needs, thanks. -Matt On Nov 19, 2009, at 4:29 AM, Thierry Boileau wrote: > Hello Matt, > > the current directory is based on a mapping between extensions and media > types (see the javadoc of the method MetadataService#addCommonExtensions).

Re: file extension changes on PUT

2009-11-19 Thread Thierry Boileau
Hello Matt, the current directory is based on a mapping between extensions and media types (see the javadoc of the method MetadataService#addCommonExtensions). At this time, the extensions "jpe", "jpg", "jpeg" are all mapped with the media type "MediaType.IMAGE_JPEG", with a preference for the f

file extension changes on PUT

2009-11-17 Thread Matt Kennedy
I have found some behavior that I think is incorrect when a jpeg is PUT to a Directory. I wrote a test server in groovy and a client in curl to illustrate the problem, see below. In summary, when a jpeg image is PUT into a Directory resource with a URL like http://host:port/tmp.jpg, the file exte