• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3397
  • Last Modified:

How Do You Select a File Using the JQuery File Selector with Browse Dialogue?

How do you select a file using the JQuery File selector with file Browser Dialogue?  I need to select a JQuery file and need the file path and file name from the selector once the file is selected.

Dan
0
danielolorenz
Asked:
danielolorenz
2 Solutions
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
you can open the dialog box, but you cannot programmatically select a file from a users hard drive, that would be a major security breach. Once the user has selected a file, you would manipulate the data with the "input:file" syntax:

var path = $( "input:file" ).val();
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now