Solved

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

Posted on 2013-12-26
2
2,513 Views
Last Modified: 2013-12-27
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
Comment
Question by:danielolorenz
2 Comments
 
LVL 3

Assisted Solution

by:Detlef001
Detlef001 earned 250 total points
ID: 39740662
0
 
LVL 33

Accepted Solution

by:
Big Monty earned 250 total points
ID: 39741741
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

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

by Julian Matz As of jQuery (http://jquery.com/) 1.4 the .live() method (http://api.jquery.com/live/) supports custom events as well as some standard JavaScript events that it previously didn't support. Among these is the submit event. Unlike …
What is a Lightbox? A Lightbox is the effect you see when you click, for example, an image and the screen fades out and up pops the same image but in its full size dimensions. There are lots of Lightbox effects for jQuery. Problem is they are a…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question