mirror of
https://github.com/Afilmory/afilmory
synced 2026-02-01 22:48:17 +00:00
fix: extend upload request timeout for larger batches and slower networks
- Increased the upload request timeout from 2 minutes to 10 minutes to accommodate larger file uploads and slower network conditions. Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -56,7 +56,8 @@ const PhotoUploadStoreContext = createContext<PhotoUploadStore | null>(null)
|
||||
const computeUploadedBytes = (entries: FileProgressEntry[]) => calculateUploadedBytes(entries)
|
||||
const MAX_PROCESSING_LOGS = 200
|
||||
let processingLogSequence = 0
|
||||
const UPLOAD_REQUEST_TIMEOUT_MS = 120_000
|
||||
// Extend upload request timeout to tolerate larger batches / slower networks (10 minutes).
|
||||
const UPLOAD_REQUEST_TIMEOUT_MS = 600_000
|
||||
|
||||
export function createPhotoUploadStore(params: PhotoUploadStoreParams): PhotoUploadStore {
|
||||
const { files: initialFiles, availableTags, onUpload, onClose } = params
|
||||
|
||||
Reference in New Issue
Block a user