fix validation of files and conflict with fineuploader