
Whenever I try to upload videos to my storage, I get an error saying my origin has been blocked by CORS policy and it fails to upload my video. This occurs exactly at one minute of upload time so I'm thinking it has to do with how long the upload is taking/how big the file size is. My max upload size set on my bucket is 5 GB and the mp4 files I'm trying to upload are around 50 mb. My uploading works fine when upload pictures, so I believe it has something to do with the file size of the mp4 files. I read that with larger file sizes, I need to break the file down into chunks in order for it to upload properly, but supposedly the SDK already does this for you so I'm not sure how to fix this. Here is my code for uploading a file (it is very basic):
export async function uploadFile(file: File) { try { const uploadedFile = await storage.createFile( appWriteConfig.storageId, ID.unique(), file ); return uploadedFile; } catch (error) { console.log(error); } }
Recommended threads
- Nextjs ISR (incremental static regenerat...
i have a cached function and when i revalidate it using `revalidateTag` the cache gets revalidated but the static pages using that cached function do not get re...
- Adding users to a team. HELP ME OUT. 🙏
So i am building a online Education platform. Teachers have a register page. I have a "teachers" team in auth and a "teacher_profile" database for storing profi...
- Seeding storage/table issue
Hello, I have encountered some issue with uploading an image to the bucket. Usually, image upload is done from local point, however on some tutorial that was d...
