Patent ID: 8456533

Claim:
An image capturing apparatus comprising: a detection unit configured to detect that a recording medium has been connected; a determination unit configured to determine whether or not the recording medium detected by the detection unit is an automatic transferable recording medium that automatically transfers an image file recorded in the recording medium to an external apparatus by wireless communication; an image capturing unit configured to capture an image of a subject and output the image; a selection unit configured to receive an input from a user to select which naming rule is used to generate a filename of the image output by the image capturing unit, out of a plurality of naming rules including a first naming rule and a second naming rule, wherein a filename according to the first naming rule having a next number after a number given to an image file that was recorded last time is generated and a filename according to the second naming rule having a next number after a largest number among numbers contained in filenames of image files recorded in the recording medium is generated; a generation unit configured to generate a filename of the image according to the naming rule selected by the selection unit; a control unit configured to control so as to cause the generation unit to generate the filename according to the first naming rule if the determination unit has determined that the recording medium is the automatic transferable recording medium, and to control so as to cause the generation unit to generate the filename according to a naming rule selected among the first naming rule and the second naming rule by the selection unit if the determination unit has determined that the recording medium is not the automatic transferable recording medium; and a recording unit configured to record the image in the recording medium as an image file with the filename generated by the generation unit.