Preparations for allowing proper preview of uploaded files.