1

How could we get the file input full path using jquery ?

1
  • 1
    I think there's security reasons why it can't be done. If it could be done it would just be $('#fileinput').val(); Commented Sep 25, 2010 at 13:21

2 Answers 2

2

jQuery("input[type=file]").val(); just for the filename not the entire path.

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

Comments

2

You can't. Only filename can be read, not fullpath. This restriction is because of security.

Comments

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.