Click here to Skip to main content
15,890,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to upload the file directly from the client machine.

I have one button for mail sending.

If i click the button, the from, to, subject comes using pageload.

Like that the default file also could be added as a attachment directly from the client machine.

How to upload the file directly(using file upload control or eithout using file upload control)

Plz help me to do this task. Urgent...
Posted

1 solution

Hello Jaison.,

For security reasons the file input field value can neither be set via HTML nor via JavaScript. (http://www.w3schools.com/tags/att_input_value.asp)

Regards,
 
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