we use the variable 'save' to let the view's pageto know that there has been one file uploaded. We also noticed that in the database, in the table submissions they were not storing the number of files uploaded in the numfiles field, so we fix that so we could use that parameter in our outputs function.