# Struggles with ulpoading documents

**URL:** <https://forum.bubble.io/t/struggles-with-ulpoading-documents/212783>\
**Category:** Database\
**Created:** [June 24, 2022, 7:22pm UTC](https://forum.bubble.io/t/struggles-with-ulpoading-documents/212783 "2022-06-24T19:22:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dunnydf](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@dunnydf](https://forum.bubble.io/u/dunnydf)\
**Post date:** [June 24, 2022, 7:22pm UTC](https://forum.bubble.io/t/struggles-with-ulpoading-documents/212783/1 "2022-06-24T19:22:50Z")

</div>

Hi all

I have a simple database where I want to store uploaded documents of different types. However, I want the documents to be private so I dont want to just add directly to databse as I undertand that anyone with the document URL would be able to see them.

The table looks like this:-

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/0/d/0df69a0d60da289146efd76c6ec45660f7be7f08.png)

These are global documents and not in the context of anything in particular and I am struggling therefore to define the thing to attach them to in the file uploader.

I have achieved similar when I have uploaded them in the context of a specific thing like a risk control but I just can’t seem to understand the logic when I just want to add a document to a database with a name, a type and the user who uploaed it.

Thoughts?

Thanks

D

---

<div class="post-metadata">

**Author:** ![GH5T](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gh5t/32/209141_2.png) [@GH5T](https://forum.bubble.io/u/GH5T)\
**Post date:** [June 24, 2022, 7:46pm UTC](https://forum.bubble.io/t/struggles-with-ulpoading-documents/212783/2 "2022-06-24T19:46:19Z")

</div>

Just setup your privacy rules.

This user is creator of Uploaded Document.

---

<div class="post-metadata">

**Author:** ![dunnydf](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@dunnydf](https://forum.bubble.io/u/dunnydf)\
**Post date:** [June 24, 2022, 7:58pm UTC](https://forum.bubble.io/t/struggles-with-ulpoading-documents/212783/3 "2022-06-24T19:58:09Z")

</div>

Sorry, I don’t understand your answer.

I want to mark the file as private in the file ulpoader control and then attach it to a thing. Because I am not attaching it as a fiield in some separate record (like a particular customer for example) I can’t work out the logic needed.

At the end of the day I just want to upload a document, stick it in a table and allow all logged in users to be able to access it.

I know I can use a workflow to create a thing but as I understand it doing this means that anyone can see the document if they have the URL?

I may well have misunderstood this though.

Thanks

D

---

<div class="post-metadata">

**Author:** ![GH5T](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/gh5t/32/209141_2.png) [@GH5T](https://forum.bubble.io/u/GH5T)\
**Post date:** [June 24, 2022, 8:00pm UTC](https://forum.bubble.io/t/struggles-with-ulpoading-documents/212783/4 "2022-06-24T20:00:34Z")

</div>

Anything that is “marked as private” is ONLY available to current user that has uploaded. You will need to setup privacy rules for users to be able to view attached files.

![chrome_48C8v70Pnb](https://us1.discourse-cdn.com/bubble/original/3X/2/c/2c0ef44138555ba8224a1a03ccfacdd98f51e8c7.png)

---

<div class="post-metadata">

**Author:** ![dunnydf](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@dunnydf](https://forum.bubble.io/u/dunnydf)\
**Post date:** [June 24, 2022, 8:15pm UTC](https://forum.bubble.io/t/struggles-with-ulpoading-documents/212783/5 "2022-06-24T20:15:07Z")

</div>

Ahhhh…I understand. So I have added the file to my table now and set up a rule that only logged in users can see attached files in this table.

Thanks

D
