To upload a file without using upload file ?
-
hi all, i would like to save a file from clients machine onto server without using an fileupload or user interaction. It should be done when a user clicks a button then say a file in C:\\temp.txt(like any file) shuld be save in my server.any ideas.. plz.
-
hi all, i would like to save a file from clients machine onto server without using an fileupload or user interaction. It should be done when a user clicks a button then say a file in C:\\temp.txt(like any file) shuld be save in my server.any ideas.. plz.
jagadeeshkumar1984 wrote:
clicks a button then say a file in C:\\temp.txt(like any file) shuld be save in my server.any ideas..
Impossible
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
hi all, i would like to save a file from clients machine onto server without using an fileupload or user interaction. It should be done when a user clicks a button then say a file in C:\\temp.txt(like any file) shuld be save in my server.any ideas.. plz.
To add to the answer you got, the reason you can't do this, and the reason you can't get at a file upload path in javascript, is security. While your use may be benign, imagine if someone could write a webpage, and make it so when you browsed it, any file that had a known path ( such as Windows files ) could be uploaded to a server ?
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )