Skip to content

Commit

Permalink
More explanation in comment
Browse files Browse the repository at this point in the history
Signed-off-by: cosa65 <[email protected]>
  • Loading branch information
cosa65 committed Dec 7, 2023
1 parent a66feca commit 6dcf508
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/upload/processUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ const createAndUploadSampleFile = async (
return;
}

// Take the fileName now because after loadAndCompressIfNecessary the name could be lost
// Take the fileName now because after loadAndCompressIfNecessary the name could
// be lost in the compression. If it is compressed fileObject becomes a uInt8Array
// instead of the fileReader metadata object that it is now
const fileName = file.fileObject.name;

if (!file.compressed) {
Expand Down

0 comments on commit 6dcf508

Please sign in to comment.