Specifying content type for attachment

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.

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?

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?

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

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