views:

517

answers:

3

Application: HTA (therefore IE) This is an application that uses SendKeys to populate a FILE input field.

Issue: File is never uploaded.

Description: An offscreen form (invisible to user) uploads a file to the server. The file input is entered via SendKeys (javascript). Appears to be isolated to when IE8 is installed.


Does anyone know of what may be causing this and any workarounds?

Sorry for lack of information. I will edit the question with additional information if no answers are submitted.

A: 

Is it possible to use compatibility mode in IE8 as a work-around?

jasonh
+1  A: 

IE8 has set the <input type="file"> element to read-only in order to prevent security attacks. (see article).

Therefore a programmatic way isn't possible.

TJ
A: 

the same problem with me i need something to set the value of input type="file"