Upload file on site

  • 1
  • Question
  • Updated 3 years ago
Are there any simple directions on how to upload an attachment to a record on a site?  I used this:
http://help.skuid.com/m/components/l/102565-use-the-file-component-to-attach-files-to-a-record
and it works fine in preview 

Then the issue starts when it try to upload on my site.  When I click on "Upload" nothing happens.  Are there certain objects and fields I need to make public?  

I saw this:
http://help.skuid.com/m/page-assignments-and-overrides/l/201793-using-the-skuid-page-visualforce-com...  

Is there a cook book recipe to doing this?  Step 1, step 2 etc?
Photo of Bill Fox

Bill Fox

  • 7,954 Points 5k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
I think you are probably having a permissions issue. When you preview, you are logged in as an administrative user. Whe you go to your site you are an anonymous user. I remember reading posts about this in the community, but I can't remember the details. There were issues around org wide defaults of objects, custom sharing permissions, and public user access permissions if I remember.
You have to be careful you don't expose all content records to the site, but allow the site users to upload. I think someone suggested a custom sharing rule that only allows the record to be shared publicly if it doesn't have a created date. That way, once a public user executes an upload, it will no longer be accessible to the public because it will be assigned a created date.
Photo of Bill Fox

Bill Fox

  • 7,954 Points 5k badge 2x thumb
Not being available after upload would be fine.  Still lost on where to go.
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Here it is the post I was talking about:
https://community.skuid.com/skuid/top...