When using a file extension for the pattern, dragging a file with the correct extension always shows the error class. The reason seems to be that (at least in Chrome), the file passed in to upload.validatePattern doesn't actually contain a file name. When using the type (such as application/pdf), this works fine.
When using a file extension for the pattern, dragging a file with the correct extension always shows the error class. The reason seems to be that (at least in Chrome), the file passed in to upload.validatePattern doesn't actually contain a file name. When using the type (such as application/pdf), this works fine.