There are many posts about this, but they’re all pretty old and the architecture has shifted around quite a few times.
Pretty simple request with a lot of complexity underneath: I want an unauthenticated user to be able to create a custom object record, and then upload a file related to that record.
I’m trying to do this in a Lightning Aura Exp Cloud site (if I’m not mistaken, LWR is not yet supported).
I’ve got Skuid showing up and the fields in a form. File Upload is rendering - the only configuration that works is Content Document with no model selected. I cannot seem to figure out how to relate it to the record that’s being created.
I tried having the File Upload component inject a custom file name or description, which could then theoretically be used by a Flow or Apex to go find and then relate the two records on the backend, with system context. But no dice yet - the custom values do not get saved on the file in Salesforce.