Jump to content

View PDF


mazluta

Recommended Posts

when i write "file://c:/pics/PDF files/GettingStarted.pdf" in google url (or even with "\") i see the file.

when i do the same with : UniURLFrame1.URL := 'file://c:/pics/PDF files/GettingStarted.pdf'; (or even with "\") - i dont see the file.

if i copy the file from the original directory the "cache" file (or files)  and set

UniURLFrame1.URL := '/cache/my session temp dir/GettingStarted.pdf'; - i can see the file

 

why UniURLFrame1.URL can not get the original path immediate ?

Link to comment
Share on other sites

16 hours ago, mazluta said:

i have Document Managment System Application.

you meen, i have to copy any pdf,jpg,tif,bmp,docx... to the cache directory and the display it from there?

Hello,

How You protect files from unauthorized download from c:\ ???

and how will protect from this behavior 

 

 

Link to comment
Share on other sites

4 hours ago, mazluta said:

first - the user will see only the documents he "can see", the app hold records that point to the documents, so it is easy.

if you send the url of a file to the user (not just show it to him), there will be a problem. Anyone will be able to download / open this file.

Even in a (temporary) folder, anyone can download this file if it is shown to the user as follows: www.yourdomain.com/temp/folder/yourfile.pdf.

is good to think about this, for security reasons/GDPR/  and so on.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...