I am using Selenium RC with Junit framework. I am trying to upload a file using attachFile() method.
attachFile: (Information collected from selenium API http:/
My solution to this is to use Selenium-2 in RC emulation mode. This allows you to keep your legacy Selenium-1 tests but switch to Selenium-2 api when needed to perform tasks like file uploads.
Selenium-2 is currently in Beta but seems to be relatively stable. But not everything that Selenium-1 can do is supported by Selenium-2 RC emulation mode so think twice before you go that way.
More on this here: http://seleniumhq.org/docs/09_webdriver.html#emulating-selenium-rc