well that makes sense, since am using IE 7 , but what is the work around?
and what it seems also that the path also is changed for whatever reason to
reflect the "site" address instead the local hard drive (the purpose of the
whole thing is to preview from the hard drive before the actual apload).
so, anyone thinks or knows of a solution?
also i tried to look at some premaid scripts for preview and it seems that
code is kinda absolete now, so ... where is our super coder for the help??
SOS super coder, we need u :)
thanks
jim
"Stephen Chalmers" <ig******@lycos.co.uk> wrote in message
news:11**********************@c74g2000cwc.googlegr oups.com...
Jim S. wrote: ok, am trying to do a picture preview before i upload a picture, but i
have
a tiny problem , it used to work but, not anymore.
here is the partial code (u do not need more to find the problem):
<html>
<IMG name=myimg height="100">
<form action="uploadpic.php" method="post"
ENCTYPE="multipart/form-data">
File: <input type="file" name="file" onChange="myimg.src=file.value"
size="30"> <input type="submit" value="Upload!">
<input name="cid" type="hidden" id="cid" value="'.$clientid.'">
</form>
</html>
now here what i noticed, when i try to upload a pic from lets say:
c:\picfolder\picture.jpg the file.value should have all that , and it
should give it to myimg.src but instead the myimg.src is having
http:\\mysite\picture.jpg
so what is wrong?
This question arose on another forum recently, and stems apparently
from a security issue. Someone said that I.E. 7 makes only the bare
filename available in the .value property of file type elements, even
though the full drive and path may appear in the associated text field.
This is the case already with Opera, so effectively scripted preview
facilites appear no longer to be viable without prompting the user to
enter the full path into a separate field.