Skip to content

Commit

Permalink
[WIP] Lie about the file size until we have the data we need in the db
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopkovacs committed Nov 9, 2022
1 parent cc7f33e commit 0b65ea7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/AssetPage/Download/Download.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,10 @@ const Download = ({ assetID, data, files, setPreview, patron }) => {
// Add the preview image to the zip
if (files.preview) dlFiles.push({
url: files.preview,
path: `${assetID}_preview.png`
// TODO: is the size of this image stored in the db?
// If yes, then we should get it and pass it down here
path: `${assetID}_preview.png`,
// TODO: use the real file size here
// when we finally have it the db
size: 0
})

startDownload(name, dlFiles)
Expand Down

0 comments on commit 0b65ea7

Please sign in to comment.