How do you tell them apart in the backend?
But it sounds like a case for a custom rule
I cant seem to figure out how to validate an image with a condition. Scenario: User can upload 3 images, each image is a specific type so say images A, B, C.
They can upload any of these 3 as many times as they want if not happy with the file. But once admin approves the image then thats it they cant upload anymore. So if A, and C are approved then only B image can accept upload.
I can simply disable the upload for A, C on the front end but that still not secure since Postman can still simply bypass the frontend form and try to upload directly.
So basically how can a FormRequest ensure that it's allowed if there is no record of that A,B, or C that is approved?
Image is upload 1 at a time so its not a group of objects. Data would be media and type ( media is the image, type is A, B or C) Thanks
Please or to participate in this conversation.