Fixed ACL logic when uploading new files.