Topic: Accessing local files?

Can widgets access files on /mnt/usb?  if so what are the Flash routines to do so?  The reason I ask is that it would be nice to have a widget create PLS files and assist with setting up streams. 

10Q,
wayn3w

Re: Accessing local files?

No - for pretty basic security reasons, a widget loaded over the network is unable to access local files.

Re: Accessing local files?

Duane wrote:

No - for pretty basic security reasons, a widget loaded over the network is unable to access local files.

Pretty much what I suspected.  Thanks!

Re: Accessing local files?

What if the Widgit resided on a memory card? or does it not matter?

Re: Accessing local files?

It's all about the Flash security model.  The Control Panel, for instance, runs from local storage, so it has complete access to the host device.  Widgets, which generally come from the network, do not.

If a widget had local file access, there would be nothing preventing it from reading those files and uploading them to an external server.

The chumby actually uses a master/slave model to run two Flash movies at the same time - the master instance is usually the Control Panel, and the slave instance is created and destroyed for each widget.

You can run a widget from local storage using the profile.xml easter egg - however, it will still have security restrictions, but in a "file://" sandbox, not an "http://" sandbox.

The extensions we've made to Flash follow the original model - things that can affect the hardware, access the local file system, or otherwise have a global effect on the device are reserved for the master.

We often get complaints from developers about this - however, it's security best practices. Our primary interest is in protecting the user's device, files, and network.