Solved

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

Posted on 2013-12-26
2
2,807 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

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…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to dynamically set the form action using jQuery.
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…

623 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