Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachment path get mangled. #22

Closed
chrislaurie-io opened this issue Apr 3, 2020 · 2 comments
Closed

Attachment path get mangled. #22

chrislaurie-io opened this issue Apr 3, 2020 · 2 comments

Comments

@chrislaurie-io
Copy link

My storage class returns a path to my file as:

/data/user/0/...

Which I pass directly in the attachments property.

The mail fails with this error:

PlatformException(error, Failed to find configured root that contains /data/data/...

Samsung Galaxy S7

@chrislaurie-io chrislaurie-io changed the title Attachement path get mangled. Attachment path get mangled. Apr 3, 2020
@taljacobson
Copy link
Owner

you might want to check out path_provider.

the example app has usage for using it for creating a local file https://github.com/taljacobson/flutter_mailer/blob/master/example/lib/main.dart#L225

issue #10 has some examples of how it might work.

@taljacobson
Copy link
Owner

closing in favor of #10. since it seems like a problem of android configuration and attachment path.

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

No branches or pull requests

2 participants