Solved

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

Posted on 2013-12-26
2
2,409 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 32

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to dynamically set the form action using jQuery.
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)

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now