Do you use the input control? I used this code in C#.
May be can help you:
...
using System.Web.UI.HtmlControls;
...
HtmlInputFile htmlIF;
String _path;
htmlIF = (HtmlInputFile)this.FindControl("<the control's name>");
_path = htmlIF.htmlIF.Value;
...
Greetings!