## html
{{ name || 'Drop file here'}}
## scss-global bpic-input-ui-file { .file-place{ margin: 5px; border: 1px dashed white; width: 120px; max-height: 20px; overflow: hidden; word-break: break-all; display: flex; float: left; margin-right: -20px; } input{ opacity: 0; width: 1px; height: 1px; } } ## js-global Blackprint.Sketch.registerInterface('BPIC/Input/UI/File', class FileIFace extends Context.IFace.File { constructor(node){ super(node); let that = this; this.dropFile = function(file){ file = file[0]; // Fix for multiple window if(file.constructor !== File) Object.setPrototypeOf(file, File.prototype); that.setFile(file); } } });