Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to send file from client machine to server without using file upload control.Actually i don't want to select file manually and uploaded to server.File path is given in code.
Posted
Updated 14-Nov-11 21:49pm
v2
Comments
Sergey Alexandrovich Kryukov 15-Nov-11 1:20am    
Let's avoid complex sentences. Do you want to send anything without user knowledge?
--SA
koolprasad2003 15-Nov-11 1:35am    
yeah SA, i think OP want to send file to server without user knowing.
pallavid3 15-Nov-11 3:32am    
Actually we don't want user(client) to select file and upload,developers will give the file name and path in code and that should be uploaded automatically from client to server machine.

1 solution

You can't just go and take a file of the client machine, it doesn't work that way.
You will have to have:
- FileUpload control, where the user selects the file. Or
- An ActiveX installed on the client to send the file. Or
- An exe running on the client to send the file.
browser has nothing to do with client machine. he don't have a knowledge of client machine folder structure / file system.

but you can use Javascript to get client machine file and send it to server using
File.Copy()
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900