Fix for download link causing blank screen in IE and for upload_preview not working for .jpeg extension


git-svn-id: http://svn.montala.net/svn/resourcespace@4439 c08608d7-6e46-0410-86ca-f2a6f1370df5