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

feat: Add downloadFile method in file model #1518

Merged
merged 2 commits into from
Sep 9, 2024

Commits on Sep 9, 2024

  1. feat: Add downloadFile method in file model

    For the Flagship app offline feature, we want to make some files
    available offline
    
    To make this possible, we want the cozy-apps to download files as usual
    except when they are hosted in the FlagshipApp
    
    In that scenario, we want the cozy-app to call the new `downloadFile`
    intent
    
    Also to ease future compatibility, we want to implement a new method
    hosted in the `file` model instead of in the collection as before
    
    So in order to handle offline files, the cozy-app will now need to call
    `downloadFile()` method from `models/file`
    Ldoppea committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    72a5da3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ce57209 View commit details
    Browse the repository at this point in the history