I want to fake a file uploading form, e.g
<form action=upload.php method=post enctype='multipart/form-data'>
   <input type=file name=userfile>
   <input type=submit>
</form>
Normally you will have to click on the userfile object and select a file. 
Now, is it possible to fake the content of that input? I mean, I've encoded file contents in javascript, and I don't want user interaction, just use the pre-defined value when the browser try to read the "fake file"
Is that possible?
I already tried Cross Domain AJAX posting with HTML5, but that would require CORS enabled on server side.