Question: can I upload files using `selenium RC` in IE?

Answer: 
The short answer is that in general [you can't](http://wiki.openqa.org/display/SEL/Selenium+Core+FAQ#SeleniumCoreFAQ-Ican%27tseemtouseSeleniumCoretouploadafile%3BwhenItrytotypeinthefileuploadtextfield%2Cnothinghappens!), due to browser security restrictions. Think about it, if Javascript code could programmatically upload a file to the server, it could send sensitive files to the server without the user ever noticing.

There are ways to work around it, as Niraj notes, but they involve using another tool to inject keypresses into the window system event queues. Also, you can run using the \*chrome backend which is \*firefox with lower security barriers.
I found that Autoit does the job but It failed for firefox so if else statement according to browser comes.

```
WinWaitActive("Choose File to Upload")
Send("C:\Images\abc.jpg")
Send("{ENTER}")

```

Type the above code in SciTE Script Editor of [Autoit](http://www.autoitscript.com/cgi-bin/getfile.pl?autoit3/autoit-v3-setup.exe).

The "Choose File to Upload" is the title of the window when you click on button(Browse/Attach). 
While Executing the code before `click(Browse)` the code should be execute the exe file created by `Compile Script to .exe` so that the code will wait for the popup and when the popup comes it selects the file to upload.