mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
refactor: move MAX_CONCURRENT_UPLOADS inside createUploader scope
This commit is contained in:
@@ -39,8 +39,6 @@ const temporaryFunctions = (region: string, projectId: string) => {
|
||||
return new Functions(clientProject);
|
||||
};
|
||||
|
||||
const MAX_CONCURRENT_UPLOADS = 5;
|
||||
|
||||
const createUploader = () => {
|
||||
const { subscribe, set, update } = writable<Uploader>({
|
||||
isOpen: false,
|
||||
@@ -107,6 +105,8 @@ const createUploader = () => {
|
||||
}
|
||||
};
|
||||
|
||||
const MAX_CONCURRENT_UPLOADS = 5;
|
||||
|
||||
const uploadFiles = async (
|
||||
region: string,
|
||||
projectId: string,
|
||||
|
||||
Reference in New Issue
Block a user