On Thu, Oct 11, 2012 at 11:53 AM,  <matthew.pain...@import.io> wrote:
> Hi Scott,
>
> Could you expand on your hack? I'm in a similar situation here :)

In the end we opted to get the filepath via a Java dialog but here's the gist:

In user.js (same folder as the prefs.js file) I added the following:lines:

  user_pref("signed.applets.codebase_principal_support", true);
  user_pref("capability.principal.codebase.p0.granted",
"UniversalXPConnect UniversalFileRead");
  user_pref("capability.principal.codebase.p0.id", "<URL-TO-YOUR-APP-HERE>");
  user_pref("capability.principal.codebase.p0.subjectName", "");

Now when you read the value property of a file input it should return
the full path to the file selected by the user.  Unfortunately this is
taken from some notes that I haven't looked at in a few months - if it
doesn't work, let me know and I'll try to whip up a quick sample.

Best,
-- 
  Scott Elcomb
  @psema4 on Twitter / Identi.ca / Github & more

  Atomic OS: Self Contained Microsystems
  http://code.google.com/p/atomos/

  Member of the Pirate Party of Canada
  http://www.pirateparty.ca/
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to