diff --git a/common/file-utilities.js b/common/file-utilities.js index 9a025124..e1fcae6c 100644 --- a/common/file-utilities.js +++ b/common/file-utilities.js @@ -159,7 +159,7 @@ export const upload = async ({ file, onProgress, bucketName, uploadAbort }) => { } let item = res.data.data; - if (item.type.startsWith("image/")) { + if (Validations.isPreviewableImage(item.type)) { let url = Strings.getURLfromCID(item.cid); try { let blurhash = await encodeImageToBlurhash(url); diff --git a/components/core/Upload/Modal.js b/components/core/Upload/Modal.js index c6df5cec..36157a46 100644 --- a/components/core/Upload/Modal.js +++ b/components/core/Upload/Modal.js @@ -226,7 +226,7 @@ function Controls() { Drop or select files to save to Slate
- (we recommend uploading less than 200 files at a time) + (we recommend uploading fewer than 200 files at a time)
{ {Strings.bytesToSize(totalBytesUploaded, 0)} of {Strings.bytesToSize(totalBytes, 0)}{" "} - – {Strings.getRemainingTime(uploadRemainingTime)} (Please don’t close the browser tab - during this time) + – {Strings.getRemainingTime(uploadRemainingTime)} (Please keep this tab open during + uploading) - retry({ fileKey: row.id })}> Retry + retry({ fileKey: row.id })}>Retry diff --git a/scenes/SceneSlate.js b/scenes/SceneSlate.js index a32f1b55..e00eea0b 100644 --- a/scenes/SceneSlate.js +++ b/scenes/SceneSlate.js @@ -22,7 +22,7 @@ import WebsitePrototypeWrapper from "~/components/core/WebsitePrototypeWrapper"; import ProcessedText from "~/components/core/ProcessedText"; import ScenePage from "~/components/core/ScenePage"; import ScenePageHeader from "~/components/core/ScenePageHeader"; -import SquareButtonGray, { STYLES_SQUARE_BUTTON_GRAY } from "~/components/core/SquareButtonGray"; +import SquareButtonGray from "~/components/core/SquareButtonGray"; import EmptyState from "~/components/core/EmptyState"; import DataView from "~/components/core/DataView";