Hussain4real
S3 CORS
when trying to upload to s3 bucket got this error in my console:
"Access to fetch at 'https://kno-buckets.s3.amazonaws.com/profile-photos/51/Kavitha-Rajendran-Mudaliar.jpg' from origin 'https://sms.test' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled."
though the image is uploaded on the s3 bucket but can't be retrieved.
15 replies
Searching Record in AttachAction
Accdording to the Docs, to search records to attach in a relationship manager one can specify the columns to search using this syntax:
'''AttachAction::make()
->recordSelectSearchColumns(['title', 'description'])'''
what if the title attribute is from another model that has a relationship with the current model?
i tried using dot notation but not working e.g ([author.tittle'])
7 replies
Searching Record
Accdording to the Docs, to search records to attach in a relationship manager one can specify the columns to search using this syntax:
'''AttachAction::make()
->recordSelectSearchColumns(['title', 'description'])'''
what if the title attribute is from another model that has a relationship with the current model?
i tried using dot notation but not working e.g ([author.tittle'])
2 replies