Validation for file type
-
I’m trying to make the admin upload only .pdf files and restrict them from uploading any other type.
I’ve tried the regex
/\bhttp[\w%+\/-]+?pdf\b/with no success. It triggers the error even if an actual PDF file is tried to upload. Kindly guide me how do I achieve this. Below is my current configuration.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Validation for file type’ is closed to new replies.