Including retry middleware and logging the upload call