0

I'm using my LWC to upload photos as Files for a specific Custom Object within a community.

<lightning-file-upload label="Upload your photo" record-id={obj.Id} onuploadfinished={handleUploadFinished} file-field-name="IsMainPhoto__c" file-field-value="true"></lightning-file-upload>

When the user uploads the photo and the handleUploadFinished finishes, the photo is stored as a File of the obj, but the field "IsMainPhoto__c" is not set to true.

If it's useful, that community profile has privileges for R and W, and View All for the Custom Object.

Can anyone tell me why it's not working?

Thanks in advance!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.