Fix upload API