Verify that uploaded files are readable when selected
authorRob Crittenden <rcritten@redhat.com>
Tue, 3 Nov 2015 15:26:36 +0000 (10:26 -0500)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Sat, 14 Nov 2015 00:16:06 +0000 (01:16 +0100)
commitcae2c6d2b98b2981458e06f3700d0e0d27e1a2dc
treed98026a1d341528f9a22b8b056258a7242c06fff
parenta8994fbcbe824b784c6ccefb1acc2cf8d268b90e
Verify that uploaded files are readable when selected

When selecting a file using file input this doesn't guarantee
that the file contents are readable. No real error is provided
in this case, things just don't work as expected.

When adding a SAML SP and the metadata file or image is provided via
file upload try to read the file in the browser first and pop up an
alert if it is unreadable.

https://fedorahosted.org/ipsilon/ticket/22

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Reviewed-by: John Dennis <jdennis@redhat.com>
templates/admin/option_config.html
templates/admin/providers/saml2_sp_new.html