Implemented last lines of code but upload doesn't work on windows