1

Is it possible to use a File Input within a form to just navigate to a Folder, and then select just that folder? I don't want to select a file within it, just the directory. I'd like to do this rather than have folks type in the entire path to the directory...

In otherwords:

User clicks [Browse] navigates to folder, clicks [OK] and the Browse Input retains the folder path.

I am creating a form for users to submit where they need access granted.

1 Answer 1

3

No, that's not possible. There is no reason why a user would want to submit a local path to a web application anyway (besides some obscure local/intranet applications).

Sign up to request clarification or add additional context in comments.

4 Comments

So is my only option to have them select a file, then strip that from the end of the path?
You will never receive the path on the server! All you will get is the filename (and the file contents of course).
Well, as I said - the path will never be sent to the server.
Ok, I'll leave it at that. Thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.