-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
[Feature Request] Get Url File Name #23
Comments
Yeah, I add this feature in my FileDownloader library: https://github.com/dotnet-campus/dotnetCampus.FileDownloader |
I trying to add this feature as soon as possible. Thanks for your feedback. |
Hi @ghost1372, await ds.DownloadFileAsync(downloadItem.Url, new DirectoryInfo(downloadItem.FolderPath)); |
Hi @bezzad thank you It is not possible to identify the file name and extension in this kind of links:
|
I will try to implement this as well, but I do not promise that I can. Because there are a series of problems in implementing this type, first of all, how do we know if a link puts the name on the URL address or the header! There is a dichotomy, but I try to think more about that and I hope it is resolved. Thanks |
سلام اقای خسروی فر خسته نباشید ببخشید که به فارسی مینویسم |
d
@ghost1372 That's what I did, and I wrote Chinese blog: Google Translate dotnet C# How to quickly get a url link to read the file name without the Internet |
با سلام |
بله خوشحال میشم اگر بتونم کمک کنم |
thanks but your method not work for this url |
@ghost1372 Yes, the code for this item has not yet been finalized to be pushed to the Github. Check this issue to yourself with the C# code and you will notice that the return value of a filename.rar is in incorrect encoding. |
@ghost1372, Please check the develop branch, let me know if there is a problem. Thanks |
@bezzad thank you worked very well 👏 but you should change your test Downloader/src/Downloader.Test/RequestTest.cs Lines 40 to 41 in b419fe2
Because this link is only available from Iran IP and people who want to compile the project from outside Iran will not be a successful test. |
@ghost1372 yeah, I will change that. |
Please add this feature to get the file name and extension from the link Therefore, there is no need to specify the name and extension in the path
for example:
The text was updated successfully, but these errors were encountered: