Author Topic: CMOD Mime type  (Read 4262 times)

kader

  • Guest
CMOD Mime type
« 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

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2230
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: CMOD Mime type
« Reply #1 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.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

kader

  • Guest
Re: CMOD Mime type
« Reply #2 on: February 27, 2014, 10:12:57 AM »
Great. I'll recreate my application. We are still in Dev.

many thanks Justin.

Kader

kader

  • Guest
Re: CMOD Mime type
« Reply #3 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

jeffs42885

  • Guest
Re: CMOD Mime type
« Reply #4 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 :)

kader

  • Guest
Re: CMOD Mime type
« Reply #5 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

jeffs42885

  • Guest
Re: CMOD Mime type
« Reply #6 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?

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2230
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: CMOD Mime type
« Reply #7 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.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

Frederick Tybalt

  • Full Member
  • ***
  • Posts: 124
    • View Profile
    • Personal Website
Re: CMOD Mime type
« Reply #8 on: March 02, 2014, 10:26:03 PM »
"application/ondemand extension-field=csv"


Are you trying to retrieve from thin client or thick client?
rIcK
======------------------======
www.rick.co.in | www.tekbytz.com