https logic added, but upload still fail