Choose a local file w/o uploading the chosen file

Posted by Austin Hyde on Stack Overflow See other posts from Stack Overflow or by Austin Hyde
Published on 2010-06-08T23:24:50Z Indexed on 2010/06/08 23:32 UTC
Read the original article Hit count: 401

Filed under:
|

I am making a simple development tool for myself using PHP on my local development server.

I would like a way to have a simple file-chooser to select a file without uploading it, but just retaining the file path. This is useful, because I will be the only one using the tool, and so PHP will have access to the chosen file without having it uploaded.

My first thought is to have a <input type="file"...>, but as far as I know, there's no way to prevent the upload from happening.

Is there a way to do this?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about fileupload