i am trying to create an aspx page where i can directly upload a file from the client to the server without user intervention. I would like to do something like when the use
You should post the contents of the file.
That is what the browser does when using the file upload dialog. The browser opens the file and sends the contents over HTTP.
For example, you can post the contents using wget --post-file=file.txt. On the server, you can then read the POST data to retrieve the contents of the file.