#What's the best way of storing the video on the Appwrite
18 messages · Page 1 of 1 (latest)
First of all, it’s probably better to use Storage than Databases for storing videos.
Upload speed is going to depend on your network upload speed and your server’s download speed, plus your server’s resources.
I'm encountering an error while uploading an image or video to production; it fails with the following message.
2117-87aeaacd1e8dac7d.js:1 Error creating post: Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.
that's not the right error, can you try and see if you can find a stack throw somewhere?
or post code
This is the function create post
I have tried various methods to track the errors, but I still don't understand them.
did you use the Input File?
Yes, I used it. The issue works local but not in production
@carmine tangle what’s the error?
I got the error which is above
Is this error from the frontend or the backend?
I got this error from the browser because it appears only when I'm using the hosted link, where I fail to post an image or a video. But when I'm running it on the localhost. I post easily.
I think you need to find your backend logs - the real error should be there
I was using Netlify; that's where I got that error, but I can post images or videos on Vercell. Thank you for your time and support.
I found this page about logs on Netlify, but I don't seem to see anything there about logs for Server Components - unless that'd be under Edge Functions?
I tried to check everything about to see, if I can find the error but i didn't the exact error message. But is Netlify support the API calls using Nextjs?
@carmine tangle If you are using file try adding an external dependency for file, In node i added @web-std/file and imported file via this.