By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,842 Members | 2,368 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,842 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.