Specifying content type for attachment


(s) #1

Hi,

I am using ingest attachment plugin to ingest my html documents . Plugin automatically takes content type and it is showing "text/html" for one document and "text/plain" for other. Is there any way where we can specify content type for the ingesting data? I want both documents to have same content type.

Thanks in advance.


(David Pilato) #2

What you can probably do is to use a set processor to set attachment.content_type to whatever value you wish.

Is that what you are looking for?


(s) #3

Yes I am looking for something like this only. Is there a java API to set content type? Could you please provide the documentation link for the set API you mentioned above?


(David Pilato) #4

You can call the set processor the same way you are calling the attachment processor.


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.