Upload implementation.