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?
Assuming this will only ever be run locally, you could write a PHP-based file chooser/locator. You would have complete control over behavior and presentation this way.