Al,
Please find my comments inline.
On Sun, Nov 29, 2009 at 12:36 PM, Al Byers <[email protected]>wrote:
> 1. Why isn't it in mime-type.xml and where does mime-type.xml get used?
>
mime-type.xml is specifically used by CatalinaContainer to configure mime
types in web application context.
>
> 2. I call createDataResource and print out the value of DataResource
> and it contains "video/x-flv" in the mimeTypeId, but in the next
> service, the value is set to "application/octet-stream" and I cannot
> find the seca that changes it. The console.log shows other secas
> getting called, but nothing that could set this value.
>
If you don't pass mimeTypeId to createDataResource service as an IN
parameter, the service itself calls DataResourceWorker.getMimeType() method
inline to set the mime type of that data resource. The
DataResourceWorker.getMimeType() uses FileExtension entity to get the mime
type based on the extension of the uploaded file. If FileExtension entity
do not contain the mapping for that particular extension, the default is set
to "application/octet-stream".
This leaves us with a question here, what extension does the file you are
uploading have? FileExtension entity of course don't have a mapping for
that extension which is the reason you are seeing this behavior.
>
> Can anyone help me on this?
>
> Thanks,
>
> -Al
--
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[email protected]
-------------------------------------------------
direct: +91 - 942.592.6892