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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jw

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

    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!
  • Thomas 'PointedEars' Lahn

    #2
    Re: Advice on letting a user drop an image from the filesystem toa web page

    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 bugRiddenCrashP ronePieceOfJunk = (
    navigator.userA gent.indexOf('M SIE 5') != -1
    && navigator.userA gent.indexOf('M ac') != -1
    ) // Plone, register_functi on.js:16

    Comment

    • jw

      #3
      Re: Advice on letting a user drop an image from the filesystem to aweb page

      On Aug 5, 12:33 pm, Thomas 'PointedEars' Lahn <PointedE...@we b.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.

      Comment

      Working...