![]() If you want to users to download the file, simply stream the file down and let them save it where they want to. Users have different accounts and structures for folders and thus this will not work - Desktop path is different. That applies to any folder inside Desktop too, a sub folder may have special permissions applied.ĭo not do this, write the content online in your hosting domain. Your code can actually lookup the path you are trying to access. ![]() The New Folder button can also be found under the Home tab in Windows 10. On Windows 7, you can add a new folder by clicking the New folder button. Choose New>Folder from the right-click menu of File Explorer. Your application has read/write permissions. How Do I Create A File Folder On My Desktop Choose New>Folder from the right-click menu to create a folder.Var folder = Path.Combine(path, "folder") Īs you can see, the code properly works and has no issue at all in execution. var path = "C:\\Users\\afzaa\\Desktop\\" That said, you need to work in physical paths in order to create your directories. If your application - just assume - runs correctly on your machine, it will never run on hosting environment because they do not grant write permissions to special folders and user accounts. There are many to consider here, first of them being that your application is an ASP.NET application, and every current user will be different.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |