File extension validation complains about invalid extention even if the extension is on the file_validate_extensions list.
Setup a file field, plupload type, define file_validate_extensions. Upload file of correct extension - does not work, errors with invalid extension.
What happens is that validatePlUploadFile creates a File object with FILE_STATUS_PERMANENT status, then calls upload validators. Drupal's file_validate_extensions checks the FileUri for permanent files, which is '/tmp/randomName', not the FileName which is the original file name (this one is checked only for temporary files). Setting the File object status to 0 instead of FILE_STATUS_PERMANENT seems to work - though not sure at all this is a correct fix.
Closed: duplicate
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.