Fix upload public and tmp path