took off the middleware that prevents the file preview being properly displayed