0 Replies Latest reply: Apr 2, 2009 9:22 AM by 807575 RSS

    UploadedFile.getContentType() returns different types

    807575
      Working on a project on Creator 2 where I use the Class "UploadedFile" from com.sun.rave.web.ui.model
      I use the method getContentType() to get the type of file of a xml file.

      I expect to get "text/xml"

      When I run on Creator I get the correct type "text/xml"

      When I deply on Glassfish and run again, the type of file returned by the same code is "application/xml"

      Anyone experienced this??
      Im a little bit lost here
      Thanks