The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix uploading files to wrong bucket when navigating to another bucket while files were being uploaded (#34094)
Joshen Lim4df0bd24676a
diff --git a/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx b/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsxindex 02876ca58de..c8f321de714 100644--- a/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx+++ b/apps/studio/localStores/storageExplorer/StorageExplorerStore.tsx@@ -66,8 +66,6 @@ export function useStorageStore() {const CORRUPTED_THRESHOLD_MS = 15 * 60 * 1000 // 15 minutesconst LIMIT = 200const OFFSET = 0-const DEFAULT_EXPIRY = 10 * 365 * 24 * 60 * 60 // in seconds, default to 10 years-const PREVIEW_SIZE_LIMIT = 10000000 // 10MBconst BATCH_SIZE = 2const EMPTY_FOLDER_PLACEHOLDER_FILE_NAME = '.emptyFolderPlaceholder'const STORAGE_PROGRESS_INFO_TEXT = "Do not close the browser until it's completed"@@ -606,6 +604,7 @@ class StorageExplorerStore {}let startingBytes = 0+ const bucketName = this.selectedBucket.namereturn () => {return new Promise<void>(async (resolve, reject) => {@@ -642,7 +641,7 @@ class StorageExplorerStore {uploadDataDuringCreation: uploadDataDuringCreation,removeFingerprintOnSuccess: true,metadata: {- bucketName: this.selectedBucket.name,+ bucketName,objectName: formattedPathToFile,...fileOptions,},