HUE-1280 [fb] Inline download and preview of images and pdf mimetype

Preview files, video, audio, pdf and word document.
Another great UX improvement:
Also find a way to report uploading error happening in the middleware and
display the exception. This is very useful for uploads failing because of
no permission to the target directory, invalid filename...