Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

Is there a way to save the download in iOS camera roll directly? #76

Open
jasir-m opened this issue May 19, 2020 · 2 comments
Open

Is there a way to save the download in iOS camera roll directly? #76

jasir-m opened this issue May 19, 2020 · 2 comments

Comments

@jasir-m
Copy link

jasir-m commented May 19, 2020

I download a file, and once it is complete moved it to camera roll using camera roll library. but during the check for background downloads and once the download is complete, I don't have access to the path, thus can't move it to camera roll

@klever34
Copy link

I can't even get mine to work in iOS Simulator

@aftabaminzoobiapps
Copy link

yes.
`.done(async() => {
try {
CameraRoll.save(filePath, {'type':'video','album':'VideoDownloader'})
.then(() => {

          Alert.alert(
              `Video Saved`,
            'Video Saved Successfully',
            [{text: 'OK',}],
            {cancelable: false},
          );
        })
        .catch(err => {         
          Alert.alert(
            'Save remote Image',
            'Failed to save Image: ' + err.message,
            [{text: 'OK', }],
            {cancelable: false},
          );
        })
       
    } catch (e) {
    
        
        console.error(e);
    }`

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

3 participants