I had some troubles, but in the end got it working - the HTML with an index file worked - but I also needed to tell itch.io it wasn't an executable to download, etc, in the interface there. Some of the options don't show up until you upload and set other config. Good luck!