Doz
Posts: 0
Joined: Sun Oct 27, 2013 9:01 am

Store video and permit certain signed-in users to access it, but deny others

Hi Katya,

I have deleted the mentioned Javascript1 file. But, as expected, that doesn't solve my problem. Please what do I do next?

Doz
Posts: 0
Joined: Sun Oct 27, 2013 9:01 am

Store video and permit certain signed-in users to access it, but deny others

Hello Guys,

Is anyone home? I'm still waiting for your assistance with this.

Thank you.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Store video and permit certain signed-in users to access it, but deny others

Hello Doz, sorry for late reply, no updates yet.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Store video and permit certain signed-in users to access it, but deny others

Hello!
You have incorrect request to DB in RESTService service. The idea is not restrict access to files for users, but give them access for specific files only. For this purpose in a separate collection in DB in Users table you have to store files available for users. After you do request http://docs.appery.io/documentation/b... you'll get list of file names accessible for users. After you map these names http://docs.appery.io/documentation/r... you'll get a few video components on screen, which one has in src property name of one accessible for user video file. You have to invoke this service on page Load event (or any other event, for example click on button) instead Click on video component. There are shouldn't be any events on click on video component. If you setup everything correctly and src property has correct video file name, video component will play the video itself.

Doz
Posts: 0
Joined: Sun Oct 27, 2013 9:01 am

Store video and permit certain signed-in users to access it, but deny others

Maryna,

Honestly, I do not understand your response. I have spent a long time on it and I still do not understand what you are trying to explain.

  • Can you please say it in a different way?

  • Also explain how I can store a file in the Users table.

  • When you include a link to a very long article as part of your answer, please mention what section of the article to which you are referring me.

    Thank you.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Store video and permit certain signed-in users to access it, but deny others

Hi,

You should store file in Database collection 'Files', and just names of files in collection 'Users'.

As for the links: when you click them you are navigated to a section you need (Queries and Mapping_collections accordingly).

Doz
Posts: 0
Joined: Sun Oct 27, 2013 9:01 am

Store video and permit certain signed-in users to access it, but deny others

Could Maryna, or someone else, please explain Maryna's directive given above? I have tried everything I could understand from it but it does not work. The best I could achieve was getting the video's audio to play on the page without any image showing. Please, guys, help me solve my problem here.

I will appreciate an answer that says "do 1, 2, 3..." It will be more helpful than references to articles which are not very helpful. I has been over 7 days since I began reaching out to Appery Support for this issue.

Please take a deep breath and actually try to help me solve my problem.

Thank you.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Store video and permit certain signed-in users to access it, but deny others

Upload the files to Appery.io database (into Files collection).

You will also create users in the Users collection.

Then, you would create another (custom) collection where you would link the user and what video files that user has access to.

When the user signs in, you will do a select on the custom collection and retrieve only those records (links to videos) that the current user has access to.

There are general steps to how you would approach this. Use the links we provided above to help you get started.

Doz
Posts: 0
Joined: Sun Oct 27, 2013 9:01 am

Store video and permit certain signed-in users to access it, but deny others

I have tried Max's advice but it still does not work...I have also tried a thousand other things...

I have not even been able to get a video stored on the database to play in any way. For now, forget the aspect about assigning video to particular users and just mention how to make a video stored in the database files collection to actually play. HOW?

I have shared my project...please someone look at it and let me know why I am unable to achieve my aim.

I believe in what Appery has set out to achieve and think you guys are great but I will appreciate advice that actually helps. I am a paying subscriber and do not like that when I ask a question, I seem not to get a helpful answer until after a lot of not-so-helpful ones. Then it will be time to renew my subscription. Worse still, a lot of time is wasted.

Remember, the question now is:

"For now, forget the aspect about assigning video to particular users and just mention how to make an mp4 VIDEO stored in the database files collection to actually play. HOW?"

Thank you.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Store video and permit certain signed-in users to access it, but deny others

As I can see in your shared project, URL in RESTService is not correct.

On Database tab choose collection with files, then go GET, there should be URL in format:

pre
https://api.appery.io/rest/1/db/files/5168105ee4b055aafd1f2753/file_name /pre

Then in Collection find column 'File Name' and copy its value for the video you want to get via Service (better to do it with Ctrl+A, Ctrl+C).
Should be something like:
pre
ee9eb118-bad6-4750-b4e1-1c85a3f1cb67.Untitled.mp4/pre

Return to “Issues”