File upload preview

Hello, guys. I am using file upload for videos and the disk is s3. After a video is updated, I am using an Observer to convert the file path which is saved in database into Cloudflare Uuid. So because in the database is now the cloudflare uuid, the preview for videos doesn't work. How can I solve this problem?
2 Replies
Patrick Boivin
Hi @dianamujoiu, just a thought: Could you save the Cloudflare UUID to a separate column? You could use the local URL for admin previews and Cloudflare URL for other parts of the app.
DianaMujoiu
DianaMujoiuOP2y ago
Yeah, I think this is the only solution. Thank you
Want results from more Discord servers?
Add your server