fix: reduce chunk size to 512KB to bypass strict Nginx limits
Build and Deploy / build-and-push (push) Successful in 43s
Build and Deploy / build-and-push (push) Successful in 43s
This commit is contained in:
+1
-1
@@ -112,7 +112,7 @@ export const api = {
|
|||||||
|
|
||||||
// Storage
|
// Storage
|
||||||
uploadAsset: async (fileBlob) => {
|
uploadAsset: async (fileBlob) => {
|
||||||
const chunkSize = 10 * 1024 * 1024; // 10MB chunks
|
const chunkSize = 512 * 1024; // 512KB chunks to bypass 1MB Nginx limits
|
||||||
const token = localStorage.getItem('auth_token');
|
const token = localStorage.getItem('auth_token');
|
||||||
const authHeaders = token ? { Authorization: `Bearer ${token}` } : {};
|
const authHeaders = token ? { Authorization: `Bearer ${token}` } : {};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user