[lively-kernel] Hooking into file uploads
l.thamsen at googlemail.com
Wed Feb 1 23:04:17 CET 2012
You where right to look at the world itself for handling that drop event. However, it's not in the world's menu, but implemented on the world. Take a look at
lively.morphic.World>>#onHTML5Drop in the module lively.morphic.Event.js with the System Code Browser (which is in the Tools category of the world menu).
There you'll see where the FileUploader>>handleDroppedFiles comes into play.
On Feb 1, 2012, at 1:58 PM, Fabian Bornhofen wrote:
> Hi Blake -
> here's a hint for the file uploads hook: core/lively/morphic/Events.js
> -> lively.FileUploader>>handleDroppedFiles might be what you're
> looking for.
> Have fun!
> On Wed, Feb 1, 2012 at 1:43 PM, blake <dsblakewatson at gmail.com> wrote:
>> So, a very cool thing about LK2 is that you can drop a file on a world
>> and will be uploaded.
>> I'd like to start my "serious" explorations by hooking into that
>> process. I want to be able to read dropped files and report back on
>> their contents. I'm thought I might be able to find something in the
>> world menu itself but no luck (so far).
>> Anyone got any pointers?
>> Also, is it possible to localize LK2? I'd like to have my own
>> installation; I do some stuff with data that's secure/sensitive. Don't
>> really want that going out to the universe in general. (I may have
>> asked this arleady; my apologies.)
>> lively-kernel mailing list
>> lively-kernel at hpi.uni-potsdam.de
> lively-kernel mailing list
> lively-kernel at hpi.uni-potsdam.de
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lively-kernel