Fix upload onerror