Fix mimetype leaking between files.

Files uploaded at the same time when validation was disabled would all
share the type of the first file.