You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have developed a chrome extension using WASM and able to set bidirectional communication meaning I am able to call .NET Core function from JavaScript lib and JavaScript functions from WASM Dlls .
Now , I have a file URL which I want to download and then read the content in .NET Core layer . I have tried multiple ways but unable to achieve it in Blazor.BrowserExtension .
I am able to download a file in user's download folder and want to read the file from there not sure how we can achieve it as whatever file location I hardcode and pass it to WASM Dlls it always gives null as location .
@mingyaulee can u suggest a way by which we can read a file from file system ?
The text was updated successfully, but these errors were encountered:
Extensions run in a sanboxed environment and you have full access to the files that are packaged together in the extension, but accessing files outside of it is is considered risky for the browsers to implement. Accessing to these files require explicit permission granting by the user when installing the extension and typically only grants access to a very small scope.
If you have a file URL, I would suggest passing that to the .Net code so that it can be downloaded and processed directly as a Stream without going through the user's file system, that is if you don't need to write to the file system.
I have developed a chrome extension using WASM and able to set bidirectional communication meaning I am able to call .NET Core function from JavaScript lib and JavaScript functions from WASM Dlls .
Now , I have a file URL which I want to download and then read the content in .NET Core layer . I have tried multiple ways but unable to achieve it in Blazor.BrowserExtension .
I am able to download a file in user's download folder and want to read the file from there not sure how we can achieve it as whatever file location I hardcode and pass it to WASM Dlls it always gives null as location .
@mingyaulee can u suggest a way by which we can read a file from file system ?
The text was updated successfully, but these errors were encountered: