I'm attempting to create a method in my code which allows users to upload files from any location on their desktop.
So far, every every attempt I've used to try and code this, I get an error saying that 'Access to the path has been denied'. The error doesn't appear when I place files in the same directory in which Visual Studio is located however, uploading from there is not convenient for users.
I have looked at the FileInfo class (.DirectoryName , .FullName) and the properties within the FileUploader class (.FileName) but, unfortunately, none of these allow me to perform the action.
Can anyone suggest what library operations I need to upload files from anywhere and not just from the VisualStudio program?
So far, every every attempt I've used to try and code this, I get an error saying that 'Access to the path has been denied'. The error doesn't appear when I place files in the same directory in which Visual Studio is located however, uploading from there is not convenient for users.
I have looked at the FileInfo class (.DirectoryName , .FullName) and the properties within the FileUploader class (.FileName) but, unfortunately, none of these allow me to perform the action.
Can anyone suggest what library operations I need to upload files from anywhere and not just from the VisualStudio program?
Comment