Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    UploadItem with HTML accept attribute

    Hi,

    Could you add to UploadItem possibility to set HTML attribute accept to filter types of files that can be uploaded?

    https://developer.mozilla.org/en-US/docs/HTML/Element/Input#attr-accept

    I have made a small workaround using overloaded getElementStyleHTML:
    Code:
    isc.UploadItem.addProperties({
        getElementStyleHTML: function() {
          var result = this.Super("getElementStyleHTML", arguments);
          if(this.accept) {
    	result += ' accept="' + this.accept + '"';
          }
          return result;
        }
      });

    #2
    We've added support for this to FileItem and UploadItem and the changes will hit nightly builds of 8.3p and 9.0d from April 20
    Last edited by Isomorphic; 18 Apr 2013, 23:59.

    Comment

    Working...
    X