RE: Uploaded file MIME type

2015-10-09 Thread Roll, Kevin
es it to do > the right thing? Can I put something in my POST which explicitly sets the > MIME type (a not-ideal workaround)? > > > -Original Message- > From: Robert Munteanu [mailto:romb...@apache.org] > Sent: Friday, October 09, 2015 3:31 PM > To: users@sling.a

Re: Uploaded file MIME type

2015-10-09 Thread Julian Sedding
ut something in my POST which explicitly sets the > MIME type (a not-ideal workaround)? > > > -Original Message- > From: Robert Munteanu [mailto:romb...@apache.org] > Sent: Friday, October 09, 2015 3:31 PM > To: users@sling.apache.org > Subject: Re: Uploaded file M

RE: Uploaded file MIME type

2015-10-09 Thread Roll, Kevin
ubject: Re: Uploaded file MIME type Have you inspected your HTTP traffic, specifically the POST request that your client sends? Your client might be sending the image/x-png as a Content-Type header. Not 100% sure that the SlingPostServlet takes that into account, but I think it does. Regards Juli

RE: Uploaded file MIME type

2015-10-09 Thread Roll, Kevin
type (a not-ideal workaround)? -Original Message- From: Robert Munteanu [mailto:romb...@apache.org] Sent: Friday, October 09, 2015 3:31 PM To: users@sling.apache.org Subject: Re: Uploaded file MIME type On Fri, Oct 9, 2015 at 9:02 PM, Roll, Kevin wrote: > Simply adding that bundle to my

Re: Uploaded file MIME type

2015-10-09 Thread Robert Munteanu
Robert Munteanu [mailto:romb...@apache.org] > Sent: Friday, October 09, 2015 11:28 AM > To: users@sling.apache.org > Subject: Re: Uploaded file MIME type > > On Fri, 2015-10-09 at 13:17 +, Roll, Kevin wrote: >> So if I understand correctly there are two possibilities: >>

RE: Uploaded file MIME type

2015-10-09 Thread Roll, Kevin
olume enough that this is acceptable. -Original Message- From: Robert Munteanu [mailto:romb...@apache.org] Sent: Friday, October 09, 2015 11:28 AM To: users@sling.apache.org Subject: Re: Uploaded file MIME type On Fri, 2015-10-09 at 13:17 +, Roll, Kevin wrote: > So if I understand c

Re: Uploaded file MIME type

2015-10-09 Thread Robert Munteanu
- > From: Steven Walters [mailto:steven.walt...@icidigital.com] > Sent: Wednesday, October 07, 2015 3:10 PM > To: users@sling.apache.org > Subject: Re: Uploaded file MIME type > > On Wed, Oct 7, 2015 at 2:46 PM, Roll, Kevin > wrote: > > > I am trying to upload

RE: Uploaded file MIME type

2015-10-09 Thread Roll, Kevin
? -Original Message- From: Steven Walters [mailto:steven.walt...@icidigital.com] Sent: Wednesday, October 07, 2015 3:10 PM To: users@sling.apache.org Subject: Re: Uploaded file MIME type On Wed, Oct 7, 2015 at 2:46 PM, Roll, Kevin wrote: > I am trying to upload a PNG file to the repository, us

RE: Uploaded file MIME type

2015-10-07 Thread Roll, Kevin
] Sent: Wednesday, October 07, 2015 3:10 PM To: users@sling.apache.org Subject: Re: Uploaded file MIME type On Wed, Oct 7, 2015 at 2:46 PM, Roll, Kevin wrote: > I am trying to upload a PNG file to the repository, using the > SlingPostServlet. The problem I am encountering is that the

Re: Uploaded file MIME type

2015-10-07 Thread Steven Walters
On Wed, Oct 7, 2015 at 2:46 PM, Roll, Kevin wrote: > I am trying to upload a PNG file to the repository, using the > SlingPostServlet. The problem I am encountering is that the field > jcr:mimeType on the automatically created node ends up being "image/x-png", > which is causing me a lot of troub

Uploaded file MIME type

2015-10-07 Thread Roll, Kevin
I am trying to upload a PNG file to the repository, using the SlingPostServlet. The problem I am encountering is that the field jcr:mimeType on the automatically created node ends up being "image/x-png", which is causing me a lot of trouble downstream because "x-" indicates a non-standard MIME t