🐛 Unknown file for file roots with no format/extension (#845)

This commit is contained in:
Montassar Ghanmy
2025-03-10 09:50:43 +01:00
committed by GitHub
parent 4c0f85469c
commit fe6c13e067
4 changed files with 11 additions and 3 deletions
@@ -33,7 +33,7 @@ const PendingRootRow = ({
const uploadedFilesSize = root.uploadedSize;
const uploadProgress = Math.floor((uploadedFilesSize / root.size) * 100);
const isUploadCompleted = root.status === 'completed';
const isFileRoot = rootKey.includes('.');
const isFileRoot = root.isUnknownFormat || rootKey.includes('.');
const fileType = isFileRoot ? rootKey.split('.').pop() : '';
// Callback function to open the folder after the upload is completed