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

Download is not working with remote URL's #333

Closed
2 tasks done
ursnj opened this issue Feb 11, 2025 · 0 comments
Closed
2 tasks done

Download is not working with remote URL's #333

ursnj opened this issue Feb 11, 2025 · 0 comments

Comments

@ursnj
Copy link

ursnj commented Feb 11, 2025

Current behavior

Download method exposed from this library is not downloading files from remote URL's. is it expected or there is a bug arround it.

Expected behavior

It has to download remote files.

Platform

  • Android
  • iOS

React Native Version

0.76.5

React Native Compressor Version

1.18

Reproducible Steps And Demo

const downloadVideo = async () => {
    const { status } = await ImagePicker.requestMediaLibraryPermissionsAsync();
    if (status === 'granted') {
      const file = CONFIG.FILES_URL + 'videos/' + video.uuid + '.mp4';
      console.log("Downloading video...", file);
      await download(video, (progress) => {
        console.log('downloadProgress: ', progress);
      });
    } else {
      NToast.error('You need to give storage permission to download file.');
    }
  };

From above code it never reaches downloadProgress, also not getting any error.

@ursnj ursnj closed this as completed Feb 11, 2025
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

1 participant