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

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

@franza

Description

@franza

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions