Hi
How to save file in Application Folder using Api. We r using RestSharp
Thanks
Hi
How to save file in Application Folder using Api. We r using RestSharp
Thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Puneet KankarRank #446 · 5.6K reputationPosted Dec 28, 2022, 2:01 AM EST
var uploadFolder = Path.Combine(Directory.GetCurrentDirectory(), "UploadedFiles");
var finalPath = Path.Combine(uploadFolder, fileName);
Check this video as well you can get better Idea
https://www.youtube.com/watch?app=desktop&v=FdRxkjA_ZQ8
Puneet KankarRank #446 · 5.6K reputationPosted Dec 27, 2022, 11:59 PM EST
Hello,
Please check below link.
https://www.c-sharpcorner.com/UploadFile/ankithakur/uploading-streamimages-to-rest-api-using-restsharp/
https://restsharp.dev/usage.html#recommended-usage
Ramco RamcoRank #462 · 5.4K reputationPosted Dec 28, 2022, 12:45 AM EST
Hi Puneet
what change should i do in below code so that file is saved in application folder. I am using RestSharp
string Path = @"C:\Windows\Temp\";
Thanks