This solution really helped me in downloading the file without changing the "FILENAME". Thank you very much & keep posting on angular.
@_akos86842 жыл бұрын
I had been struggeling for the last 2 days. You made my day Happy Dude!!! Thank you !!!
@harikrishna9718 Жыл бұрын
Thankyou
@azureteachnet Жыл бұрын
Thanks for the feedback. Please subscribe to the channel.
@harikrishna9718 Жыл бұрын
@@azureteachnet yes Already done 👍✅
@bearmanthemovie2 жыл бұрын
Man thank you very much! You helped me a lot! God bless your soul!
@azureteachnet2 жыл бұрын
Thanks for you feedback. Please subscribe to the channel if you have not subscribed yet.
@PoojaVaghadiya-l5p Жыл бұрын
Thank You, It is Very Helpful
@azureteachnet Жыл бұрын
Thank you for the feedback. Please subscribe to the channel if you have not subscribed yet. Thanks.
@arasappanmageshwaran42582 жыл бұрын
super... thanks for your wonderful solution
@SonalKate-cc8ie Жыл бұрын
Can you please tell how this can be done for a post request from api?
@kodenix2 жыл бұрын
Remember allow 'Content-Disposition' in the API response header, in many frameworks is disable by default, it is possible setting with 'Access-Control-Expose-Headers':''Content-Disposition' in the api response
@azureteachnet2 жыл бұрын
yup. the same is shown in the video too :-)
@marianahidalgosandoval2184 Жыл бұрын
Thank you so much 😄
@Kajalchopade-rx7xz10 ай бұрын
I don't have cs file could you please help with last step where you changed configuration. I have back-end in python and front end in angular.
@shivamagrahari2624 Жыл бұрын
thank you sir ❤
@thatcuriousduo2 жыл бұрын
Thank you so much for this video. but I cannot get response.body as Blob. Do you mind console logging your response body? when i download file with this code it contains the whole response. is it a backend issue or frontend
@azureteachnet2 жыл бұрын
did you write code as it is mentioned in video? you have to observe entire response.. Please subscribe to the channel if you have not subscribed yet.
@thatcuriousduo2 жыл бұрын
subscribed. since i was not able to get hold of this issue, i had to get the octet stream from the backend and it worked with the same code in the frontend
@madeinchiapas8 ай бұрын
thanks!
@dorrakadri14742 жыл бұрын
i have a problem my header only contains the type and lenfth and in swagger i have the same header as you duuno why i cant access to the header
@azureteachnet2 жыл бұрын
You have to enable Content Disposition Header at api side. did you try that?
@dorrakadri14742 жыл бұрын
@@azureteachnet yyes i finally made it i aded this @CrossOrigin(exposedHeaders = {"Content-Disposition","Access-Control-Allow-Credentials"}) in my controller im working with springboot thank you alot
@azureteachnet2 жыл бұрын
@@dorrakadri1474 Happy to help. Please subscribe to the channel if you have not subscribed yet.
@dorrakadri14742 жыл бұрын
@@azureteachnet done
@Rob-J-BJJ4 ай бұрын
@@dorrakadri1474 thank you i was stuck on this problem for hours and this solved it
@plantundead55832 жыл бұрын
Hi, Do you have a tutorial on how to upload excel file and select which sheet to upload?: For example: I'm uploading a Sample.xls. that file has 3 sheets, I want to upload the sheet 2 only. is that possible?
@azureteachnet2 жыл бұрын
I dont think, it is possible from front end. Browser has limited capabilities and cannot read excel. You can upload entire file to the server and there you can use Microsoft Interop or EpPlus package(I have used it in many of my projects) or some other package to extract the required sheets and save it somewhere.
@almasum28142 жыл бұрын
worked ... thanks
@azureteachnet2 жыл бұрын
Glad it worked. Please subscribe to the channel if you have not subscribed yet.
@johndumont37852 жыл бұрын
If I download an image, is there anyway to make the image a svg instead of png?
@azureteachnet2 жыл бұрын
I dont think it is possible from the front end. Please subscribe to the channel if you have not subscribed yet. There is a lot in the channel. Thanks.
@bhargavtsapparapu94592 жыл бұрын
for me it's working but there is some delay in edge but in network, I can see the blob response , how can we fix this
@azureteachnet2 жыл бұрын
Ideally there should not be any issue with Edge because EDGE and Chorme both are chromium based. what version of EDGE you are using?
@seharabid5222 Жыл бұрын
the same method does not work for angular application on mobile phones
@azureteachnet Жыл бұрын
May I know where it is failing? Apparently it should work as it is merely same angular code. Did you check how the file name is being sent in the response?
@phanikeshavvarma3222 жыл бұрын
Can please make a video on GLOBAL ERROR HANDLER,HTTP INTERCEPTORS,AUTH GUARDS using rest API's realtime scenario's.
@azureteachnet2 жыл бұрын
Sure. My next video is on Angular with Azure AD which uses MsalGuard and Interceptor. In future, I will post videos on specific angular topics too.
@TheOMarsawy2 жыл бұрын
Thanks man
@hustleopgaming85602 жыл бұрын
I'm Still not able to download pdf , From API..Will you plz help me out.
@azureteachnet2 жыл бұрын
please let me know the issue. what are you seeing in browser console. Is your api really returnining the pdf properly.
@hustleopgaming85602 жыл бұрын
@@azureteachnet Plz provide me your mail Id so i can send you the snapshot of api response.
@hustleopgaming85602 жыл бұрын
@@azureteachnet I'm getiing a pdf type response From an Api , But My subscribe fuction is not able to grab that type of response...even if am Writng Console.log(Response), after subscribe .It's not working.
@rasenks2 жыл бұрын
Thank you :0
@azureteachnet2 жыл бұрын
Thanks for the feedback. Please subscribe to the channel if you have not subscribed yet.
@mythicpink2 жыл бұрын
I like your video but cannot stand the loud bell chime that happens nearly every minute. In this 8 minute video, the bell rings 7 times. It's really annoying.
@azureteachnet2 жыл бұрын
sorry for that :-). That was because of desperation to get subscribers. People are appreciating my videos but forgetting to subscribe so I put it. In recent videos, It is there hardly 1-2 times mostly. Thanks
@hirendrachandani98922 жыл бұрын
Helli Can You Pleas Share Also Sever side Code ?
@azureteachnet2 жыл бұрын
please go to the channel. you will find it. Thank you. Please subscribe to the channel if you have not subscribed yet.
@hirendrachandani98922 жыл бұрын
Actually I tried with Download Zip file from Webapi and front end is Angular but in case zip it not working
@azureteachnet2 жыл бұрын
@@hirendrachandani9892 are there any errors in console? are you reading file name from api? if yes, have you enabled disposition header on your api? here is complete tutorial - kzbin.info/www/bejne/j6O9en6kl5J8rdE
@av52262 жыл бұрын
Hey, Thanks for the video. But I'm getting this error. How do I resolve it ? Unexpected token '�', "�� ࡱ �"... is not valid JSON at JSON.parse.