Is there a tool i can use to add a windows explorer box to a page?
I have a function that creates a txt file, but I want the user to be able to browse their computer to determine the path to save the file to.
Any suggestions are appreciated! Thanks!
in a web application. just sendthe file as a download, the user will be able to choose the path to save the file...Still in a web application, I don't think you can browse throught the directories of a user's computer...it would be a security risk don't you think?
I don't follow. How would browsing one's own computer be a security risk?
I'm using streamwriter to create a file, which it places in a default location. I would like to be able to have the user select the location that the file it output to. I saw there was a tool "File Upload", but that is not quite right. I just need to have a location selection.
fileupload is for a user who wants to send files to your server...if a web application can access someone's directories, than he can put files without the user knowing (as virus) or access private information...you can send files by download directly in the temp folder, but I really don't think there is a way to browse a user's computer in a web application...If I'm wrong, I invite anybody to correct me ;)
I really don't see the use you have for this feature...just send the file by download...the user will be able to browse in his own directories to save the file in the desired path...
The previous poster was right - it's a security risk because, if the browser can access Windows Explorer, then it can access information about your filesystem, report that information across the internet, possibly execute viruses, etc etc.
Just create a download link, and let your users decide how to save it. Windows Explorer isn't the only filesystem GUI in the world, and it's bad to design as if it was.
0 comments:
Post a Comment