redwhiteblue4free
Posts: 0
Joined: Tue Jul 04, 2017 6:37 am

How to view videos and photos stored in the files database

without adding JS is not working Image

redwhiteblue4free
Posts: 0
Joined: Tue Jul 04, 2017 6:37 am

How to view videos and photos stored in the files database

is this a difficult thing to do? still no solution

thanks

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to view videos and photos stored in the files database

Please add the real type value instead of the link to the video file. E.g. for mov files it has to be "video/mov"

https://developer.mozilla.org/en-US/d...

redwhiteblue4free
Posts: 0
Joined: Tue Jul 04, 2017 6:37 am

How to view videos and photos stored in the files database

not working

i just want to display the list of video in the database, user can upload their video form mobile or pc. video format may be different, dont have to be mov.

what is the solution for displaying the list of videos in database? is it very difficult to do?

thanks

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to view videos and photos stored in the files database

You can set the type value, according to the file extension. But you have to set it. Without that property, the video won't work.

redwhiteblue4free
Posts: 0
Joined: Tue Jul 04, 2017 6:37 am

How to view videos and photos stored in the files database

can u show me how to set it? do i have to add any JS and where? like this?
Image

this not working, can u show me a working solution on how to display the list of videos that are in the database. do i create a list service to do that?

what if user upload video other then mov format, how do i set multiply format?

thanks

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to view videos and photos stored in the files database

The mapping should be like:

Image

And the JS code on the mapping file-type should be:

prevar fileExtension = value.substring(value.lastIndexOf(".")+ 1).toLowerCase();
return "video/" + fileExtension;
/pre

redwhiteblue4free
Posts: 0
Joined: Tue Jul 04, 2017 6:37 am

How to view videos and photos stored in the files database

i made this
Image

my mapping
Image

and i did what you say added the code and still not working. need help

thanks

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to view videos and photos stored in the files database

Please provide us with a public app link (https://docs.appery.io/docs/testingan...) and exact steps to reproduce this problem.

redwhiteblue4free
Posts: 0
Joined: Tue Jul 04, 2017 6:37 am

How to view videos and photos stored in the files database

like this?
https://appery.io/app/mobile-frame?sr...

and exact steps to reproduce this problem. i dont know what to put here, explain.

thanks

Return to “Issues”