mazluta Posted July 28, 2021 Share Posted July 28, 2021 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 ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 28, 2021 Share Posted July 28, 2021 1 hour ago, mazluta said: why UniURLFrame1.URL can not get the original path immediate ? Yes, there must be a web directory. Quote Link to comment Share on other sites More sharing options...
mazluta Posted July 28, 2021 Author Share Posted July 28, 2021 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? Quote Link to comment Share on other sites More sharing options...
mhmda Posted July 28, 2021 Share Posted July 28, 2021 On 3/22/2021 at 10:45 PM, mhmda said: hi 1 Quote Link to comment Share on other sites More sharing options...
irigsoft Posted July 29, 2021 Share Posted July 29, 2021 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 Quote Link to comment Share on other sites More sharing options...
mazluta Posted July 30, 2021 Author Share Posted July 30, 2021 first - the user will see only the documents he "can see", the app hold records that point to the documents, so it is easy. secend - before view the file, i copy it to the chach folder, so, no problem. Quote Link to comment Share on other sites More sharing options...
irigsoft Posted July 30, 2021 Share Posted July 30, 2021 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. Quote Link to comment Share on other sites More sharing options...
mazluta Posted August 3, 2021 Author Share Posted August 3, 2021 you right, i will try to prevent it some how thanks Quote Link to comment Share on other sites More sharing options...
irigsoft Posted August 3, 2021 Share Posted August 3, 2021 4 hours ago, mazluta said: you right, i will try to prevent it some how thanks I wrote an attempt to prevent it in this thread, try: Quote Link to comment Share on other sites More sharing options...
mazluta Posted August 3, 2021 Author Share Posted August 3, 2021 well irigsoft. at the end of the story, one can hit Print-screen and get the document. so i will only try to prevet some users (by params) of docing "download" or "print". Quote Link to comment Share on other sites More sharing options...
irigsoft Posted August 3, 2021 Share Posted August 3, 2021 46 minutes ago, mazluta said: so i will only try to prevet some users (by params) of docing "download" or "print". ok. Quote Link to comment Share on other sites More sharing options...
mazluta Posted August 14, 2021 Author Share Posted August 14, 2021 On 7/28/2021 at 11:38 PM, mhmda said: Hi mhmda this is not good for security reason..... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.