Remove the js for checking file ext.
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 13 Apr 2018 15:26:33 +0000 (11:26 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 13 Apr 2018 15:26:33 +0000 (11:26 -0400)
Not working for some photos.

Toolkit/Photos/templates/Admin/editPhoto.html

index d3bff2d..226494f 100644 (file)
 </div>
 <script>
     $(function() {
+        /*
         $('INPUT[type="file"]').change(function() {
             var ext = this.value.match(/\.(.+)$/)[1];
             switch (ext.toLowerCase()) {
                     this.value = '';
             }
         });
+        */
         $("#editPhotoForm").submit(function() {
             var atLeastOneSeleted = false;
             $("#P2CSelect option:selected").each(function() {