Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

iamDiscovery's avatar

Nova Image and Video Upload

I am currently using VaporFile to upload images, videos, and other files directly to S3 from Nova. The issue I'm having is that it doesn't seem to store the file with an extension type or information, and as a result, I encounter issues when attempting to display that file on the front-end. I was wondering how I'd amend this or if there are any better ways to go about doing this when using Vapor.

What I'm currently doing:

VaporFile::make('Attachment', 'attachment')
    ->path('/announcements')
    ->storeOriginalName('attachment_name')
    ->acceptedTypes('.mp4,.mov,.png,.jpg'),

I have tried using the File field as an alternative, and it did work for images on deployment, however, when I tried to upload a video it didn't save the file but successfully created the entry without errors.

0 likes
0 replies

Please or to participate in this conversation.