You are viewing limited content. For full access, please sign in.

Question

Question

Set Mime Type

asked on October 29, 2018

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

0 0

Replies

replied on October 29, 2018

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?

1 0
replied on January 30, 2023

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.

 

1 0
replied on January 30, 2023

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.

1 0
replied on October 29, 2018

Thanks. I need to set the MIME type for documents in repo as they are incorrectly set.

 

Priya

0 0
replied on October 30, 2018 Show version history

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

 

 

1 0
replied on November 2, 2018 Show version history

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

 

0 0
replied on October 22, 2020

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

 

0 0
replied on October 22, 2020

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

1 0
replied on October 22, 2020

thanks Bert, thats really help :)

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.