Image show without submit form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mtbadsha
Forum Newbie
Posts: 2
Joined: Thu Apr 30, 2009 9:16 pm
Location: Dhaka, Bangladesh
Contact:

Image show without submit form

Post by mtbadsha »

hello friends,
i am facing a problem, that is i want to show selected image from my input file without submit form. can any one give me idea about the solution?
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: Image show without submit form

Post by McInfo »

Search Google for image upload preview.

I checked the first two links and neither solution worked with my browser (Firefox 3.0.9). The first didn't work because Firefox doesn't allow script access to the path in the file input tag. The second doesn't work because Firefox has a security "feature" that disallows the use of the file:// protocol from remote sites.

I think you might be able to do it with AJAX which would upload the file before it was officially uploaded.

Edit: This post was recovered from search engine cache.
Post Reply