hello! I fixed the error! The above mentioned code seems to have worked! Sorry for wasting your time.
I was uploading a rar file instead of a zip file.