Search found 33 matches

Go to advanced search

by Jake Hare7049642
Tue Sep 02, 2014 1:25 pm
Forum: Issues
Topic: 'List Service' functionality for uploaded files to DB?
Replies: 15
Views: 3268
 
Jump to post

'List Service' functionality for uploaded files to DB?

Hi Yurii,

Thanks for all your help on this. So I'd like to use your idea of using Server Script to change the default ACL for all files in my files DB from (""(read:true)) to (""(read:false))

What would that server script look like?

Thanks!!!

by Jake Hare7049642
Tue Sep 02, 2014 12:28 am
Forum: Issues
Topic: 'List Service' functionality for uploaded files to DB?
Replies: 15
Views: 3268
 
Jump to post

'List Service' functionality for uploaded files to DB?

I'm currently trying to do it using the DB Console as outlined in the link you provided. The problem is it is still listing every file for every user to read when they are logged in. I don't believe the instructions in the 'Working with the database' section for reading files is accurate. Here are m...
by Jake Hare7049642
Mon Sep 01, 2014 5:34 am
Forum: Issues
Topic: 'List Service' functionality for uploaded files to DB?
Replies: 15
Views: 3268
 
Jump to post

'List Service' functionality for uploaded files to DB?

One last question, I promise: Now that the list works, how do I restrict access so only the user to uploaded the file can see it in their list? I assume the only way to do so would be with the ACL, but right now it is set at {" ":{"read":true}. How would I make the default {"...
by Jake Hare7049642
Mon Sep 01, 2014 5:03 am
Forum: Issues
Topic: 'List Service' functionality for uploaded files to DB?
Replies: 15
Views: 3268
 
Jump to post

'List Service' functionality for uploaded files to DB?

I figured it out; the problem was I did not know the difference between the user _id and the session token. Once I figured that out I used the 'login service' to find a valid session token to test, and now it works fine.

Thanks!!!

by Jake Hare7049642
Mon Sep 01, 2014 4:47 am
Forum: Issues
Topic: 'List Service' functionality for uploaded files to DB?
Replies: 15
Views: 3268
 
Jump to post

'List Service' functionality for uploaded files to DB?

Here's the request tab with the test above:
Image

by Jake Hare7049642
Mon Sep 01, 2014 4:40 am
Forum: Issues
Topic: 'List Service' functionality for uploaded files to DB?
Replies: 15
Views: 3268
 
Jump to post

'List Service' functionality for uploaded files to DB?

Hi Yurii, I'm not sure how yours worked; I see two strange things with yours: In your request tab, you show {database_id} in the session token field, and a random number which I assume is some other database id in that field. In the test tab, what number is it that you're using as the session token?...
by Jake Hare7049642
Mon Sep 01, 2014 2:10 am
Forum: Issues
Topic: User able to see another user's info
Replies: 19
Views: 2922
 
Jump to post

User able to see another user's info

Hi Yurii, Thanks for the help. See screenshot below. That was my fault; I had the app but not the DB shared. Regarding your question about the ACL; no, there is only one place in my app where this create service is used. Is there any way to avoid the default ACL being used? https://d2r1vs3d9006ap.cl...
by Jake Hare7049642
Mon Sep 01, 2014 1:21 am
Forum: Issues
Topic: 'List Service' functionality for uploaded files to DB?
Replies: 15
Views: 3268
 
Jump to post

'List Service' functionality for uploaded files to DB?

I tried with a session token as well and get the same error

by Jake Hare7049642
Sun Aug 31, 2014 9:22 pm
Forum: Issues
Topic: User able to see another user's info
Replies: 19
Views: 2922
 
Jump to post

User able to see another user's info

Sounds good, thanks!!

Go to advanced search