Published March 20, By. Categorized as angular , google-cloud-storage Tagged angular , google-cloud-storage. Leave a Reply Cancel reply. Still Have Questions? Our dedicated development team is here for you! Contact Us. And the Angular frontend will download the file instead of directly opening it in FireFox browser in my test.
There are two ways for doing this without streaming the contents through your web server and both of them involve setting Content-Disposition property on the blob itself. Is that something I can set across all my blob containers using something like Azure Storage Explorer? This is something you would need to do for every blob in your container. Other alternative is to update the properties of the blob using any client SDK.
The approach would be to list the blobs in a container which should give you blob properties , update ContentDisposition property and save the properties. Sure you can! You can set content-diposition property by providing appropriate value in options.
Setting the content disposition and content type via Node appears to be working. It appears that both are needed. Asked 2 years, 7 months ago. Active 5 days ago. Viewed 19k times.
Improve this question. Vadim Kotov 7, 8 8 gold badges 45 45 silver badges 60 60 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Thanks a lot Hussain. Works fine!! Alex Alex 1 1 gold badge 10 10 silver badges 24 24 bronze badges.
Thank you so much AGR. This works fine. If possible kindly provide angular level solution also for knowledge purpose let's say calling the url through the http module Thanks a lot — Rushan De Silva.
0コメント