Hello.
I want to create a database, where I can upload a file/pdf for specific users. and want to connect it to a dynamic page, where those particular users can see their related documents.
Currently when I am connecting to a dynamic page all users can see the same pdf but not their own.
Please help.
Thanks in advance
Pulkesh Sharma
Something like this then and replace the recipes and upload pics examples for uploaded pdf files or something else etc.
https://support.wix.com/en/article/corvid-tutorial-creating-custom-member-profile-pages
Or, if you don’t want to do it through the Wix Members app, you can create members own dynamic pages, like in this custom code members profile pages and just simply substitute the things in the code already for whatever you want to put in instead like files uploaded etc.
https://support.wix.com/en/article/corvid-tutorial-building-your-own-members-area
Otherwise, if you are just storing pdf files in one dataset for all members, then you will need to have a field in that dataset that is able to link the pdf to each specific user, so that when you come to query and filter that dataset to show just the members own pdf file, then it will have something that links the pdf file to the current member and so can show the correct pdf file.
https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#setFilter
https://www.wix.com/corvid/reference/wix-dataset.DynamicDataset.html#setFilter
https://www.wix.com/corvid/reference/wix-data.WixDataFilter.html
https://www.wix.com/corvid/reference/wix-data.WixDataQuery.html