Hi Guys,
I have multiple file upload option which has both image and video upload option. While it’s uploading to backend. I want to show it as a carousel such that when image comes image is shown but when video comes it shows the video with option to play it.
Is this possible? Can someone please help?
If not possible what is the alternative I can try?
thank you in advance for your help
Regards,
Dilip
You could probably do it with a custom form, although I imagine it could get a bit tricky. You’d need to examine each file individually and try and figure whether it was an image or a video file.
Hi @Darren_Murphy ,
Thank you for responding
Custom forms is for capturing right? I can do File upload and take it to multiple files column.
It’ll have both videos and images there.
But how do I display this multiple columns values in a carousel?
Say it has image – Video – Image
When user swiped in carousel how do I make it
See image — See video and play — See image?
Is that possible?
Thank you.
Regards,
Dilip
Yes, with a Custom Form you initially write the uploaded values to a User Specific Column, and then once the user submits you use an Add Row action to permanently commit the added data.
By doing it this way, you can access the uploaded data before the form is submitted.
I think you would need to use two separate components - one for the images and one for videos. If they are all being uploaded together, then you’ll most likely need a helper table to unwind the array, examine each file, and then separate the images from videos.
Like I said in my first reply, I think it’s probably doable, but not straight forward.
1 Like
Hi @Darren_Murphy ,
Got it. If I understand correctly the carousel can only hold image multiple files.
Regards,
Dilip