erich.wanker Posted March 4, 2023 Share Posted March 4, 2023 Hy, for a special solution - i want to open files located on the client PC (every client has a network drive h:\ to the fileserver) i changed in chrome some flags .. entered "allow-file-access-from-files" to the Chrome-link .. installed extensions like "Local Explorer - Open File Links in Chrome" but nothing works i call the file in my uniGui-app with unisession.AddJS( 'window.open("'+datei+'");' ); at runtime - it looks like: window.open("file:///F:/erich/ordnertest/test 2/t2.txt"); OK but nothing happend Any Idea, how i can make this working??? a special configuration for browser or installing Extensions IS POSSIBLE! PS. the solution MUST handle with the local Files .. please don´t ask why 😉 ThanX for suggestions Erich Quote Link to comment Share on other sites More sharing options...
irigsoft Posted March 4, 2023 Share Posted March 4, 2023 5 minutes ago, erich.wanker said: Hy, for a special solution - i want to open files located on the client PC (every client has a network drive h:\ to the fileserver) i changed in chrome some flags .. entered "allow-file-access-from-files" to the Chrome-link .. installed extensions like "Local Explorer - Open File Links in Chrome" but nothing works i call the file in my uniGui-app with unisession.AddJS( 'window.open("'+datei+'");' ); at runtime - it looks like: window.open("file:///F:/erich/ordnertest/test 2/t2.txt"); OK but nothing happend Any Idea, how i can make this working??? a special configuration for browser or installing Extensions IS POSSIBLE! PS. the solution MUST handle with the local Files .. please don´t ask why 😉 ThanX for suggestions Erich Hello, did You try to get file like is an example "file:///c:/temp/yourfile.txt" ? Quote Link to comment Share on other sites More sharing options...
irigsoft Posted March 4, 2023 Share Posted March 4, 2023 @erich.wanker, here is a good solution explained, have you tried it?: https://developer.chrome.com/articles/file-system-access/ You must to use window.showOpenFilePicker(), not window.open(); Quote Link to comment Share on other sites More sharing options...
leons Posted March 5, 2023 Share Posted March 5, 2023 Hi Erich, Do you want to acces the files without the interaction of the user? I don’t think this is possible because it would be a real security issue. It is against the concept of any browser. You have to use an agent on the user machine. Regards Leon Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted March 5, 2023 Share Posted March 5, 2023 14 hours ago, erich.wanker said: Erich @Erich, Probably Local Storage is a good solution for you. http://forums.unigui.com/index.php?/topic/12306-how-can-i-access-local-storage/&do=findComment&comment=65734 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.