Fix upload when uploading in root folder