Bug with images in Snippets
Summary
Snippet blob data can now be images due to the snippet versions epic, but if a user tries to edit a snippet that has image data, it will error because the form does not support images. To reduce the number of errors we see, we are going to check if the blob data is binary, and redirect the user to the show view instead - until the edit view has been updated to handle it.
Steps to reproduce
Add an image to a snippet repo, then try to edit that snippet
What is the current bug behavior?
It attempts to render the edit form for personal/project snippets and throws an error.
What is the expected correct behavior?
It should redirect to the snippet show view