F
Filament4mo ago
Eskie

FileUpload Vimeo

Hi! I am planning to use the fileupload form to upload videos on vimeo using their API.. how will I achieve this? should i store first the video then upload it on vimeo and also how can I display the uploadd video when editing the record?
4 Replies
awcodes
awcodes4mo ago
You would need a custom upload field for this. I think. But could still just extend the native FileUpload component. The biggest issue here is probably going to be the disk unless Vimeo has a laravel adapter.
Eskie
EskieOP4mo ago
unfortunately, they dont have disk.. what I did was I added ->storeFiles(false) on the FileUpload and inside the mutateFormDataBeforeCreate I added the logic where it will upload the video on vimeo.. is this a good approach?
toeknee
toeknee4mo ago
If they have a website they have a disk... it maybe best writing to a custom disk/folder in storage and sending then deleting after successful send.
Eskie
EskieOP4mo ago
yeah, I created my own disk.. EDIT: I was thinking of adapter..

Did you find this page helpful?