We have simple HTML form with , like shown below:
One extremely ugly way to resolve this is have the user manually type the directory into a text box, and add this back to the front of the file value in the JavaScript.
Messy... but it depends on the level of user you are working with, and gets around the security issue.
JavaScript
var str = document.getElementById('file_path').value;
var str = str + document.getElementById('file_name').value;