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

Question

Question

Importing a document into Laserfiche Cloud via REST API

asked on June 24, 2022 Show version history

I am looking at the documentation linked below and confused at this step:

Place the file into the web requests "electronicDocument" portion

What does "file" refer to here in respects to a JSON body? Base64Encoded? How do we specify that we want it to be native? IE: Base64Encoded TIFF

https://developer.laserfiche.com/guide_importing-documents.html

 

 

0 0

Replies

replied on June 24, 2022

I could be wrong here - I haven't worked with the Laserfiche API myself - but based on other APIs, I believe that with multipart/form POST entries, the file is separate from the JSON body and it wouldn't be doing anything to convert or modify the file or its format - so if you are sending a PDF it'll just import a PDF (similarly TIFF, DOCX, JPEG, etc. all would import in the format they are sent).

0 0
replied on June 24, 2022

Oh interesting, I just did some Googling of multi-part form post and it seems this is a way to send a file of any type. I guess the encoding is handled for you.

1 0
replied on June 24, 2022

That's my understanding - but again, that's from a perspective of other APIs and not Laserfiche's API.

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

Sign in to reply to this post.