You must Sign In to post a response.
  • Category: HTML

    How to attach image in html file.

    How to attach image in html file., i need to select file and then it's should save it local path.

    IF any code , let share with me
  • #763389
    1. Have on html "Select" control and one image control
    2. Load all the image names in the html drop down
    3. Onchange of the drop down call one JQuery Ajax call
    4. In the ajax call pass the image name and get the url of the file
    5. assign/change Src of the Image control in the ajax call sucess.

    By Nathan
    Direction is important than speed

  • #764462
    Hi Ultimaterengan,

    Try this:
    <input type="file" id="UploadFileControl" runat="server" name="pic" accept="image/*"/>
    <input type="submit"/>
    If you click on submit button, you can save the selected file as the postback occurs.

    or refer the example given below:

    Hope it helps.
    Shashikant Gurav

  • Sign In to post your comments