A non-transitory computer-readable storage medium storing a program for causing a computer to execute a control method of an image processing apparatus, the control method comprising:
- reading originals and generate image data;
- transmitting the image data to an external apparatus;
- receiving a stop instruction while the originals are read by the reader;
- causing, in accordance with reception of the stop instruction in a case where the transmission unit transmits the image data in accordance with a network protocol, a display unit to display a screen for receiving a cancel instruction, causing the transmission unit to transmit the image data while the screen is displayed, and cancelling transmission of the image data in accordance with reception of the cancel instruction;
- and
- wherein the controller causes, in accordance with reception of the stop instruction in a case where the transmission unit transmits the image data in accordance with a USB protocol, the display unit to display a screen for receiving a cancel instruction, stops transmission of the image data while the screen is displayed, and cancels transmission of the image data in accordance with reception of the cancel instruction.