Will I be able to set Mime type of a document to be PDF in Workflow please? If so, how do I do that? Thanks.
Priya
Will I be able to set Mime type of a document to be PDF in Workflow please? If so, how do I do that? Thanks.
Priya
Why do you need to set the mime-type?
Do you need to update/change the mime-type of the document in the repository or do you need the mime-type in workflow to have workflow do something with the document?
Hi All,
Using outlook integration to upload document in Laserfiche. Below is the result:
Uploaded to LF from Extension MIME type
Outlook msg application/unknown
Outlook xlsx application/unknown
Outlook docx application/unknown
Outlook pptx application/unknown
LF Upload msg application/octet-stream
Mime Types are causing issue in retrieval of the document . Is this normal behaviour if yes please let me know if mime types setup through SDK will solve the purpose.
Any other solutions...Please suggest.
Those are not correct, other posts below include the correct mime types for those extensions. Both of the values you have here essentially mean "I don't know". If these are documents being extracted from an email message, then the mime type is also pulled from the email, so it's possible the ultimate source for the bad types is the email sender. But not having the correct type for msg doesn't really make sense. You might want to open a support case so we can take a closer look.
Thanks. I need to set the MIME type for documents in repo as they are incorrectly set.
Priya
I had this issue when a document was uploaded using a LINUX WebDAV client. The solution was to use SDK in Workflow:
using objDocInfo as DocumentInfo = me.BoundEntryInfo objDocInfo.Lock(LockType.Exclusive) objDocInfo.MimeType="application/pdf" objDocInfo.Save objDocInfo.Unlock end Using
Just thinking about this a bit more, if the MIME type is missing, the extension might be as well, in which case you can also set it:
using objDocInfo as DocumentInfo = me.BoundEntryInfo objDocInfo.Lock(LockType.Exclusive) objDocInfo.MimeType="application/pdf" objDocInfo.Extension="pdf" objDocInfo.Save objDocInfo.Unlock end Using
Do we need to set mime-type while uploading document via sdk, if not whats mime-type for word and excel? is following is correct?
.doc
Microsoft Word
application/msword
.docx
Microsoft Word (OpenXML)
application/vnd.openxmlformats-officedocument.wordprocessingml.document
.xls
Microsoft Excel
application/vnd.ms-excel
.xlsx
Microsoft Excel (OpenXML)
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
For electronic Documents, yes you need to set the Mime-Type. See use the SDK Script of WorkFlow to import file from a Windows location to repository for an example
thanks Bert, thats really help :)