Hooking into file uploads

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Hooking into file uploads

blake watson
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.)

===Blake===
_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel
Reply | Threaded
Open this post in threaded view
|

Re: Hooking into file uploads

Fabian Bornhofen-2
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!
Fabian

On Wed, Feb 1, 2012 at 1:43 PM, blake <[hidden email]> 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.)
>
> ===Blake===
> _______________________________________________
> lively-kernel mailing list
> [hidden email]
> http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel
_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel
Reply | Threaded
Open this post in threaded view
|

Re: Hooking into file uploads

Lauritz Thamsen
Hi Blake.

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.

Best,
Lauritz

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!
Fabian

On Wed, Feb 1, 2012 at 1:43 PM, blake <[hidden email]> 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.)

===Blake===
_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel
_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel


_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel
Reply | Threaded
Open this post in threaded view
|

Re: Hooking into file uploads

Robert Krahn-4
In reply to this post by blake watson
Video showing how to run a Lively Kernel instance using apache: http://lively-kernel.org/other/livelyInstallMac.mov

A while ago Fabian implemented an automatic installer but it currently doesn't seem to be available. Fabian, what am I missing?

Best,
Robert


On Feb 1, 2012, at 10:43 PM, blake 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.)

===Blake===
_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel


_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel
Reply | Threaded
Open this post in threaded view
|

Re: Hooking into file uploads

Robert Krahn-3
Ah, just saw your other answer :-)


On Feb 1, 2012, at 11:17 PM, Robert Krahn wrote:

Video showing how to run a Lively Kernel instance using apache: http://lively-kernel.org/other/livelyInstallMac.mov

A while ago Fabian implemented an automatic installer but it currently doesn't seem to be available. Fabian, what am I missing?

Best,
Robert


On Feb 1, 2012, at 10:43 PM, blake 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.)

===Blake===
_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel

_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel


_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel
Reply | Threaded
Open this post in threaded view
|

Re: Hooking into file uploads

Lauritz Thamsen
In reply to this post by Robert Krahn-4
Video showing how to run a Lively Kernel instance using apache: http://lively-kernel.org/other/livelyInstallMac.mov
Please note that the movie shows /repository/lively-kernel/trunk, but the most active and latest development happens in repository/webwerkstatt :-)

On Feb 1, 2012, at 2:17 PM, Robert Krahn wrote:

Video showing how to run a Lively Kernel instance using apache: http://lively-kernel.org/other/livelyInstallMac.mov

A while ago Fabian implemented an automatic installer but it currently doesn't seem to be available. Fabian, what am I missing?

Best,
Robert


On Feb 1, 2012, at 10:43 PM, blake 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.)

===Blake===
_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel

_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel


_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel
Reply | Threaded
Open this post in threaded view
|

Re: Hooking into file uploads

milan zimmermann
In reply to this post by Robert Krahn-4
On Wed, Feb 1, 2012 at 4:17 PM, Robert Krahn <[hidden email]> wrote:

> Video showing how to run a Lively Kernel instance using apache:
> http://lively-kernel.org/other/livelyInstallMac.mov
>
> A while ago Fabian implemented an automatic installer but it currently
> doesn't seem to be available. Fabian, what am I missing?
>
> Best,
> Robert
>
>
> On Feb 1, 2012, at 10:43 PM, blake 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?

The automated installer is here:
http://lively-kernel.org/repository/webwerkstatt/users/fbo/xamppInstaller.xhtml
but Fabian is likely the person to ask about details.

I succesfuly installed 2.0 on my local system; works great. if you
need a script that worked for me repeatably on opensuse I can send it.

milan


>
> 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.)
>
> ===Blake===
> _______________________________________________
> lively-kernel mailing list
> [hidden email]
> http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel
>
>
>
> _______________________________________________
> lively-kernel mailing list
> [hidden email]
> http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel
>
_______________________________________________
lively-kernel mailing list
[hidden email]
http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel