ShurikA Posted June 7, 2007 Share Posted June 7, 2007 Is there any possibility to request from user for a directory (Not file), but not by: <input type="file">? Link to comment Share on other sites More sharing options...
justsomeguy Posted June 7, 2007 Share Posted June 7, 2007 No, the only way for a user to choose something on their local machine is to use the file input. Link to comment Share on other sites More sharing options...
ShurikA Posted June 7, 2007 Author Share Posted June 7, 2007 No, the only way for a user to choose something on their local machine is to use the file input.OK, so what is the convenient way (for user) to do it? Link to comment Share on other sites More sharing options...
justsomeguy Posted June 7, 2007 Share Posted June 7, 2007 Well, the convenient way is to use a file input field, and then use Javascript to try and parse out the path, if Javascript even has access to that. If you do that and hit submit, even if you just want the directory name, the user will still have to upload whatever file they chose. I'm not sure what the point of this is though, even if you get the path of a directory on the client's machine, you can't do anything with that, you would not be able to, for example, write a file to that directory. So I'm not sure what you're using this for. You could always just have the user type in a directory name. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.