Options are passed to upload