On Sep 3, 2014, at 3:26 AM, Mohammad Alam wrote:
> I want to upload a file on HTTP server but have a filepath and does not want to use input file type element.
> Does is it possible to upload a file without showing a file selection dialog or without doing drag/drop.
If you're asking whether this is possible in a web browser, then no, access to arbitrary files on the user's machine without the user's input is not a feature of web browsers; it would be a security problem.
I think Java applets are able to do that, however, so if you need that functionality, you could write a Java applet and embed it into your web page. The user will get a prompt asking whether they want to allow Java to access their files.