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

Question

Posted to Government

Question

Get filename and path of a file in the server

asked on September 23, 2024

Hello Community!

I'm currently working on a project where I upload images through a form to a specific location in the repository. My goal is to use these images as objects in a C# SDK script. To achieve this, I need to access the file from the physical disk instead of retrieving it from the Laserfiche repository using a workflow.

Specifically, I need assistance with the following:

  1. How can I retrieve the original filename of the file I saved through the form?
  2. How can I obtain the file path of this image in the server?

 

The only info I am getting from the repository.

Any insights or suggestions would be greatly appreciated. Thank you in advance!

Screenshot 2024-09-23 171108.jpg
1 0

Replies

replied on September 24, 2024

If you don't get much response here, try posting to the full forum. This is specifically the Government group only. 

1 0
replied on September 24, 2024

How can I do that? Because the only option is join to a group go to bottom of the group and leave the question. Thanks in advanced!

 

0 0
replied on September 24, 2024

what happens when you go here:

https://answers.laserfiche.com/

0 0
replied on September 24, 2024

I only see the all question, but post here I could not do it

answerLF.png
answerLF.png (195 KB)
0 0
replied on September 25, 2024 Show version history

Here ya go:

Go into one of the posts, then select:





Then be sure to select the topic areas here, you can choose more than one:


I think you want to put Workflow as one fo your topics since you mentioned using a script. 

What is it you need to do with the script by the way? I just want to check that Workflow can't already do what you need.

thanks!
 

1 0
replied on September 25, 2024

Here shows how to get the EDoc path, the Image path and the Text path.

Using Doc As DocumentInfo = Document.GetDocumentInfo(DocID, RASession)
	Dim ds As DocumentStatistics = Doc.GetStatistics
	If ds.ElecDocumentSize > 0 Then
		MessageBox.Show("EDoc Path: " & ds.ElecDocumentPath)
	End If
	If ds.PageCount > 0 Or ds.TextPageCount > 0 Then
		Dim Pages As PageInfoReader = Doc.GetPageInfos
		For Each p As PageInfo In Pages
			MessageBox.Show("Page Number: " & p.PageNumber.ToString() & Environment.NewLine & "Image Path: " & p.ImageFilePath & Environment.NewLine & "Text Path: " & p.TextFilePath)
		Next
	End If
End Using

 

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

Sign in to reply to this post.