Topic: Problem with getting filename to show up under each image

I'm sure this is a stupid question but can someone help me figure out how to get each file name to automatically populate the caption.  For example I would want the filename of 115-1503_IMG.jpg to show up under the image.  Is there anyway to do this besides going thru and re-typing each filename for each caption?

<filename>115-1503_IMG.jpg</filename>
    <caption>caption 1</caption>   


Thanks!!!!