Skip to content

Instantly share code, notes, and snippets.

View hzx's full-sized avatar

Dmitry Dementev hzx

  • Garden
  • Saint Petersburg
View GitHub Profile
@hzx
hzx / UploadFile.dart
Created February 14, 2012 22:36
iframe uploading file
class UploadFile {
ObservableValue<Object> observableResponse;
ObservableEvent observableError;
UploadFile(this.url, [bool multiple=false])
: _onInputFileChangeWrap = _onInputFileChange
, _onFrameLoadWrap = _onFrameLoad {
String multipleAttr = multiple ? 'multiple' : '';
_node = _render(url, multipleAttr);