How to get the file path from HTML input form in Firefox 3

For preview in Firefox works this – attachment is object of attachment element in first example:

           if (attachment.files)
             previewImage.src = attachment.files.item(0).getAsDataURL();
           else
             previewImage.src = attachment.value;

Leave a Comment