This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes html:file and showing the image.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:file and showing the image.." Watch "html:file and showing the image.." New topic

html:file and showing the image..

Henrik Krievs
Ranch Hand

Joined: Jan 05, 2004
Posts: 59

Is it possible to grap the image selected by html:file - and showing it - before submiting the page?

Regards, Henrik
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
You could upload the file, show it as an image and give the user a chance to abort before saving it on the server.

As far as showing it before you actually upload it, there may be some JavaScript voodoo you could work, but I seriously doubt it.

Consultant, Sima Solutions
I agree. Here's the link:
subject: html:file and showing the image..
Similar Threads
How can I upload multiple files using html:file
Background Image not showing
How to apply the filter for file selection
change struts default upload button
Custom Button with html:file