#create a Script (Python) called upload_files REQUEST=context.REQUEST sentFiles = {} for key in context.REQUEST.keys(): # get all the ids if key[:5]=='file.' and key[-3:]=='.id': # we find id file.XXX.id sentFiles[REQUEST[key]]='' for key in context.REQUEST.keys(): if key[:5]=='file.' and key[-3:]!='.id': #we've got a file #found its id and make sure file exists if sentFiles.has_key(REQUEST[key+'.id']) and REQUEST[key].filename: sentFiles[REQUEST[key+'.id']]=REQUEST[key] else: del sentFiles[REQUEST[key+'.id']] #remove keys that dont have files #now that we have created a dictionary w/ a id and we know its value is a uploaded file #lets write them to the context's folder for k in sentFiles.keys(): context.manage_addFile(k, sentFiles[k]) return 'Finished adding ' + str(len(sentFiles)) + ' files' #create a DTML Method called uploadForm

File 1 - id:
File 1 - contents:
File 2 - id:
File 2 - contents: