PDA

View Full Version : Uploading files using Laszlo


idiopathic
11-04-2004, 09:43 AM
Hi there,
I am considering using Laszlo for my organization, but I need to know if it is possible to create a user interface like this one:

http://www.unlimitedftp.ca/products/unlimitedftp/professional/webdemo/basic/

that would provide the user with a view of their own file system, and allow them to upload files to our own server.

Any ideas if Laszlo's tools (or Flash's security) would allow this?

morgan
11-04-2004, 11:57 AM
In theory it is possible although it may not be able to be a strict JSP / Laszlo thing. You may need to whip up some perl scripts (or $other) to handle your filesystem stuff outside the confines of the servlet container.

You could have the JSP interact seperatly with the PERL script which returns filesystem data to laszlo.

laszlo -> JSP -> PERL (then back up the chain in the opposite order)

With file uploads it may get tricky about permissions. The container may need to be run as SUID root (bad security), or You may need to setup some sort of jailed scenario where you copy a file to a temp area as "nobody" then have cron run some script that comes by the directory finds out who the file belongs to (via database or something) then MOVES it then chowns it...

10k foot view of course, but it's prolly doable with the right set of tools. Any JSP experts out there that can talk about filesystem interaction?

dobleerre
11-06-2004, 12:25 AM
Well it seems to me like in order to access the client filesystem in that way needs to be done with either a java applet or a java app... Laszlo runs inside Flash Player, and Flash Player cannot access a filesystem.

For that reason macromedia has integrated Flex Apps with Macromedia Central in Flex 1.5.

So the quick answer is no. but it may be a turnarround but it doesn't seem a simple task to do.