stenington / badgecub

Github suggested petulant-octo-happiness as a name but badgecub is probably a bit more to the point.
0 stars 1 forks source link

File selection not filtering image types #20

Open stenington opened 10 years ago

stenington commented 10 years ago

Image type should be png.

The quickest solution is to add accept="image/png" to the file input, although we may also want more validation or even conversion at some point to handle a wider variety of cases.

stenington commented 10 years ago

Oh, support for the accept attribute is poorer than I realized. I guess we should also at least add text specifying pngs are required, and improve error messaging on non-pngs.