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

Allow saving to custom sub folder and naming image #21

Closed
MitchellQ opened this issue Sep 30, 2019 · 11 comments
Closed

Allow saving to custom sub folder and naming image #21

MitchellQ opened this issue Sep 30, 2019 · 11 comments
Labels
enhancement New feature or request

Comments

@MitchellQ
Copy link

Hi,

Thanks for the plugin , however it would be better if you were able to use it to create a folder in the directory that you save it into.

i.e. on my phone it saves directly to pictures and it would be good if it could either create or have a function to create a sub directory that it uses for saving i.e. pictures/MyApp

Also being able to name the saved image would be good,

@vlada3003 vlada3003 added the enhancement New feature or request label Oct 2, 2019
@vlada3003
Copy link
Contributor

It seems like a reasonable request, but we cannot commit to a date when this will be added. However, we will gladly accept any pull requests that tackle this issue.

@ailic88
Copy link
Contributor

ailic88 commented Oct 2, 2019

@MitchellQ storing image/video in custom folder will be added in version 1.0.5

@simar7
Copy link

simar7 commented Oct 3, 2019

+1 would love to see this!

@ailic88
Copy link
Contributor

ailic88 commented Oct 8, 2019

Version 1.0.5 is released.
On Android:

By default image will be saved at "pictures" system folder,
and video at "movies" system folder.If user set folder name it will be
at root external storage.
On iOS:
By default image and video will be saved at photos.
If user set folder name it will be added as new album at photos.

Folder name is added as optional param, so your current code should compile and without any
issue.
Naming image/video file is something that we probably are not going to do, at least in some near future.

@ailic88 ailic88 closed this as completed Oct 8, 2019
@iNima
Copy link

iNima commented Apr 8, 2020

Hi @ailic88,

Thanks for this library.
Setting album name works correctly on iOS but on Android (Pixel3) it does not create an album and it still saves photos to the default pictures folder.
What do you mean by "root external storage" in your comment above?
The library version that I'm using is 2.0.1

@Hwan-seok
Copy link

Hwan-seok commented Mar 7, 2021

@iNima

Seems not working on gallery_saver: ^2.0.3 too.
Did you solved this?

@MitchellQ
Copy link
Author

HI I have tried to implement this using both 1.0.5 and the latest version 2.0.3 and haven't been able to get this to work successfully

This is my method signature await GallerySaver.saveImage(_image.path, albumName: "My App");

I have tried it and the picture still saves to Pictures; I tried to manually create the sub directory to see if that was the problem but no luck, there doesn't seem to be any reason why it fails to do this. Can anyone help, @ailic88 ?

@Hwan-seok
Copy link

Hwan-seok commented Mar 8, 2021

Hi @MitchellQ,
Do you have any alternative solution? your issue was opened almost 1.5 year ago.

@MitchellQ
Copy link
Author

No @Hwan-seok sorry I haven't been working on solutions for this as this is for a project that has been completed.

@marcoberetta96
Copy link

The parameter albumName is not working yet in 2.1.0 version

@istvmunkacsi
Copy link

Adding android:requestLegacyExternalStorage="true" in AndroidManifest solved issue for me

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

No branches or pull requests

8 participants