Image Upload Preview 2 | JavaScriptSource

Image Upload Preview 2

Abraham Joffe Jun 29, 2005
This script is intended for forms where the user needs to upload an image to a Web site. The image is displayed on the page for previewing before uploading. The display will be resized if needed so as not to break the page layout. Valid file types are set in the script; others will be disallowed. Works only in Internet Explorer but degrades gracefully.
Test it by locating a valid file on your hard drive:

Graphic will preview here
Script submitted by: Sydney Wedding Video / DVD

The JavaScript Source: Forms: Image Upload Preview

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!


Did you use this script?  Do you like this site?  Please link to us!

Leave a Response


Works really well

Paul curran Feb 14, 2014

The code is not working.

Amar Jun 18, 2013

This code is showing the file name of the image not the preview.

Vedavathi Aug 16, 2012

This code is not working in Mozilla.

sunny Mar 20, 2012