This sample creates a new directory based upon a value that could be
static but was designed to handle dynamic values. This dynamic value could be the next
consecutive record ID in a database or a randomly generated alpha-numeric value
generated through code (for example). If the directory already exisits, the default directory
for uploads is a directory entitled, 'Backup'.
Once the directory is created, this sample handles all types of form variables
(text, file, etc.) and as many of each as you would like to add. The code handles
null values for file inputs with ease (the sample has 8 possible file inputs).
All valid file inputs are uploaded to the newly created directory.
|