Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Attaching file with HTML5 filesystem API does not work. #138

Open
franza opened this issue Jul 19, 2013 · 0 comments
Open

Attaching file with HTML5 filesystem API does not work. #138

franza opened this issue Jul 19, 2013 · 0 comments

Comments

@franza
Copy link

franza commented Jul 19, 2013

I have a BB10 app that produces a log file. Log file was created with blackberry.io.sandbox = false so it should be somewhere in the app data. To attach this file to the email I'm doing next thing:

var filepath = Logger.logFileEntry.fullPath; //Logger.logFileEntry is FileEntry
//filepath is something like "/accounts/1000/appdata/APP_NAME.testDev_ackBerry_107e9d1c19/data/logs/2013-07-18 20:04:36.log"

blackberry.invoke.card.invokeEmailComposer({
    subject: "Email subject",
    body: "Email body",
    to: ["my@mail.com"],
    attachment: [filepath]
});

This code opens an email app with an entry in attachments. But attachment has 0 bytes size and when I send this email I receive no attachments.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant