469,348 Members | 1,263 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,348 developers. It's quick & easy.

Advice on letting a user drop an image from the filesystem to a webpage

jw
I haven't been able to find any resources (tutorials, tips, best
practices, etc.) that show how a web page through javascript could
accept an image file that is dropped on the page from the filesystem
and then show that image in the page somewhere. Is this possible?

The closest I've come, conceptually, is to stick an applet in the
page, make that the drop target, then when the user drops the file on
it have it send that back to the server then through AJAX pass the
image back to the page and let the Javascript get a handle to the
image through the AJAX message.

But is there something I can do that is simpler or more seamless?
Thanks!
Aug 5 '08 #1
2 898
jw wrote:
I haven't been able to find any resources (tutorials, tips, best
practices, etc.) that show how a web page through javascript could
accept an image file that is dropped on the page from the filesystem
and then show that image in the page somewhere. Is this possible?
[...]
IIRC, the very same question has been asked and answered here shortly ago.
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Aug 5 '08 #2
jw
On Aug 5, 12:33*pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
jw wrote:
I haven't been able to find any resources (tutorials, tips, best
practices, etc.) that show how a web page through javascript could
accept animagefile that is dropped on the page from the filesystem
and then show thatimagein the page somewhere. *Is this possible?
[...]

IIRC, the very same question has been asked and answered here shortly ago..
My prior searches didn't turn up anything, sorry. Searching again
(based on your post) pointed me to a post back in April that basically
said its not possible (especially staying browser neutral) without an
applet or activex control. If anyone knows otherwise or if something
changed with browsers since then, please post.
Aug 5 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by bissatch | last post: by
3 posts views Thread by Brent Burkart | last post: by
3 posts views Thread by Joe Turek | last post: by
2 posts views Thread by Robert Zahm | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.