Keep file extension on upload for mimetype detection.

When uploading file, use original extension so we can
guess mimetype and use it on download.

SDUX-38