how do i upload an image from a filebox?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gabrielle12
    New Member
    • Mar 2008
    • 2

    how do i upload an image from a filebox?

    hello!

    i'm new in the-scripts, and i'm new to javascript as well.
    im making a project for school and i want the user to upload a picture
    (which i will store in an array) .
    i've tried
    when i tried get the value of the filebox it gave me the file location.
    i saved that file location in a variable and then i tried
    - <img src="var"> and <img src="var.value" >
    but it didnt work.

    please help!!!
    gab
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    You may not display an image from file system directly.
    You have to upload it first and then display it.
    Have a look at this tutorial.

    Comment

    Working...