How to have uploaded images and PDF files open in browser window rather than download?