-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Future of Blazor] Deal with files : download, edit, upload #28110
Comments
@julienGrd thanks for contacting us.
AFAIK there's no way to do what you are asking for within a web application. The browser doesn't have any link to downloaded files, so it can't pick up any edits/changes automatically.
There is nothing official for this in 5.0, you could try and wrap the webapp in an Electron shell as some folks have done. Three is a proposal for this in 6.0 but no concrete commitments yet.
This would be your best bet I think in a web environment. Also, please keep in mind that Blazor runs in a completely different environment than Silverlight and that it is a different technology that is not meant to be a "drop-in" replacement, meaning that if you are migrating or planning to migrate Silverlight apps, it is expected that you'll have to make changes into your app to adapt it to Blazor as well as probably implement or rely on a third-party package for some of the functionality available out of the box in Silverlight. Hope this helps |
@javiercn thanks for your response, i was expected something like that. do you have more precision about you plans for .NET 6.0 which can help us to achieve this functionnality ? |
Not at the moment |
This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes. See our Issue Management Policies for more information. |
Hello guys, i mostly finish my rewrite of a Out Of Browser silverlight app to Blazor, and there is still a functionnality we can't reproduce : ability to download a file from our server (mostly word and excel file), let the user edit it by opening word/excel, and upload back the file to the server when the user close word/excel.
The silverlight was able to open directly executable on the client computer so it was quite of simple.
I know i can't do this in a web app, but i try to find a way to do this because i can't deliver the app without this.
We are ready to have something less convenient for our user than the silverlight app. for exemple a button for reupload the file manually. But we can't let the user select the file with an open file dialog. its a risk the user can't find the file he just open, or worse select the wrong file. I wondering if there is a way to keep a link to the file downloaded to automaticaly retrieve byte data of the file after edit. I look around the file system api but i don't really things like that. What do you think about it ?
Im open for all your ideas because its something really important in apps and im really surprised there is nothing better i can do. I wonder how others webapp do this kind of thing ? (im sure we are not the first company which edit a webapp which need edit office document)
Thanks for your help !
The text was updated successfully, but these errors were encountered: