Thread: Image upload
View Single Post
  #4 (permalink)  
Old October 18th, 2004, 01:29 AM
Pallav Pallav is offline
Authorized User
Join Date: Sep 2004
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts

hi Brian,Snib

Thnx for replying..

I replaced the following line in my code

 im.src = document.Upload.submitfile.value;

with what Brian suggested

im.src = document.getElementById('submitfile').value;
(i also included the id='submitfile' attribute in the file tag)

This again wrks perfectly with IE6 but not with Mozilla v 1.7.1.

In mozilla im.width and im.height is alwayz 0,while im.filesize is undefined...

im.src is getting the required image file-path,but mozilla isn't able to get the image properties(heigth,width and filesize)

Could u please help me out..