diff --git a/react/ActionsMenu/Actions/download.js b/react/ActionsMenu/Actions/download.js index 679dad26ec..b0d3b0ca0c 100644 --- a/react/ActionsMenu/Actions/download.js +++ b/react/ActionsMenu/Actions/download.js @@ -36,7 +36,13 @@ export const download = ({ encryptedUrl }) => { icon, label, Component: makeComponent(label, icon), - action: (docs, { client, webviewIntent }) => - downloadFile({ client, file: docs[0], url: encryptedUrl, webviewIntent }) + action: (docs, { client, webviewIntent, driveId }) => + downloadFile({ + client, + file: docs[0], + url: encryptedUrl, + webviewIntent, + driveId + }) } } diff --git a/react/FileImageLoader/index.jsx b/react/FileImageLoader/index.jsx index fc7e952d17..b55a93c2a1 100644 --- a/react/FileImageLoader/index.jsx +++ b/react/FileImageLoader/index.jsx @@ -142,7 +142,7 @@ export class FileImageLoader extends Component { throw new Error('No pdf files fallback') } const src = await client - .collection('io.cozy.files') + .collection('io.cozy.files', { driveId: file.driveId }) .getDownloadLinkById(this.getFileId(file), file.name) await checkImageSource(src) if (this._mounted) {