Yes. You can insert a database row for each uploaded image file with all information of interest, including file name and possibly directory name (if images might be stored in one or more directory). Then if you need to display an image, you query the DB for the file name (and directory name if applicable) based on the related information in the DB, then use the query result to populate your <img> tag.