Originally Posted by Calab
Is it possible to read the file and load the form fields without having to submit the form?
Is what I am trying to do possible?
I'm a little bit confused about your need, but I'll try to sum up. Is this what you're looking for?
1. You do not want to show the ugly file input, so you've hidden it and activate it remotely through a different button.
2. You want the file to automatically upload without a form submit.
3. Security settings won't let you do this.
If this is your problem, the answer is yes, it is possible. However, you'll have to change how you're doing things. You'll need to stop using jQuery click() or whatever it is you're using to remotely click the file input button, and instead use this method:
Summed up, it's like this. You need a practically invisible file input positioned directly on top of your custom button. So that when the user thinks they are clicking on your custom button, they are actually clicking the file input.
For some [insane] reason browsers think this is less of a security risk and will let you work with it.
You can see a solution that I used at about 43 seconds into this video: