Fix a bug that was preventing some users from uploading files