Fixed ACL condition when uploading new files.