OnDemand User Group

Support Forums => Report Indexing => Topic started by: kader on February 27, 2014, 07:20:08 AM

Title: CMOD Mime type
Post by: kader on February 27, 2014, 07:20:08 AM
Hi folks,

I stored CSV file into CMOD with generic indexer but I have issue to display it since it comes with mime type application/line and with filename OnDemandDoc.dat and the browser doesn't know which application to use to open it.
Is there any way to modify the mime type on CMOD?

Thanks,

kader
Title: Re: CMOD Mime type
Post by: Justin Derrick on February 27, 2014, 09:41:15 AM
You'll need to define a new Application with a User Defined data type, and specify the correct Mime Type, so that your browser understands how to deal with it.  I don't think you can change the mime type after an application has been defined, and even if you can, I don't think it would allow you to change data that was already loaded.

-JD.
Title: Re: CMOD Mime type
Post by: kader on February 27, 2014, 10:12:57 AM
Great. I'll recreate my application. We are still in Dev.

many thanks Justin.

Kader
Title: Re: CMOD Mime type
Post by: kader on February 28, 2014, 09:04:02 AM
Hi Justin,

 I did the change at the application. However the filename is OnDemandDoc.dat and the mime type is "application/ondemand extension-field=csv"

I still have the problem with doesn't how with which application to open it.

Thanks,

kader
Title: Re: CMOD Mime type
Post by: jeffs42885 on February 28, 2014, 09:34:03 AM
Are you sure that when you are searching you are pulling from your new application rather than your old one?

I have done this before it is quite simple. Everything linked up on the folder level? Sometimes its the little things like that that we miss that can cause a PEBCAK moment :)
Title: Re: CMOD Mime type
Post by: kader on February 28, 2014, 10:40:28 AM
Hi jeff,

 It's only the application where I set up USER DEFINED  with file extension= csv which appear in the mime  as application/ondemand  extension-field=csv

Thanks,


Kader
Title: Re: CMOD Mime type
Post by: jeffs42885 on February 28, 2014, 12:43:28 PM
Did you try reloading a file? and make sure that it's pulling index settings from the right application?
Title: Re: CMOD Mime type
Post by: Justin Derrick on March 01, 2014, 05:59:59 AM
Your browser (or OS) might not know what to do with a .CSV file.  If you copy the file, then rename it with a .csv extension, can you double-click it and have it open up in the application of your choice?  Alternately, if you drag-and-drop it onto the browser, does it launch the same program?

Also, shouldn't the mime-type be "text/csv" rather than an application?

-JD.
Title: Re: CMOD Mime type
Post by: rick on March 02, 2014, 10:26:03 PM
"application/ondemand extension-field=csv"


Are you trying to retrieve from thin client or thick client?