Sample code for uploading a folder of images