Hello,
I have three questions about the file uploader enhancement:
Can I make the field required depending on another field. In my case I have two radio buttons with option yes and no. If yes is checked I show the file upload (via jQuery) and I would like to make it required. If no is checked I hide the file upload and I don't want it to be required.
How can I set that the file upload should be only one single file?
I set in the validation following: mimes:jpeg,pdf
But the file uploader somehow has all types allowed. What am I doing wrong there?
Hello, I have three questions about the file uploader enhancement:
Can I make the field required depending on another field. In my case I have two radio buttons with option yes and no. If yes is checked I show the file upload (via jQuery) and I would like to make it required. If no is checked I hide the file upload and I don't want it to be required.
How can I set that the file upload should be only one single file?
I set in the validation following: mimes:jpeg,pdf But the file uploader somehow has all types allowed. What am I doing wrong there?