On Thursday, February 24, 2011 9:12:01 PM UTC+1, Bryan Donnovan wrote: > > When including an .mp3 file using <ui:data> the content type in the > data url is "content/unknown" > > How do I make the GWT compiler use the correct mime type?
When using a DataResource in a ClientBundle interface, you can use the MimeType<http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/resources/client/DataResource.MimeType.html>annotation, but there does not seem to be any equivalent in UiBinder's ui:data: http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java#167 > Where is the compiler's mapping between file extensions and content type? > It defers to the JVM, using URL#openConnection().getMimeType(): http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/resources/rebind/context/AbstractResourceContext.java#71 -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
