r52059 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52058‎ | r52059 | r52060 >
Date:17:54, 17 June 2009
Author:j
Status:deferred
Tags:
Comment:
wpSourceType is upload, dont include wpUploadFile, that will be send by firefogg
Modified paths:
  • /branches/new-upload/phase3/js2/mwEmbed/libAddMedia/mvFirefogg.js (modified) (history)

Diff [purge]

Index: branches/new-upload/phase3/js2/mwEmbed/libAddMedia/mvFirefogg.js
@@ -492,9 +492,12 @@
493493 js_log('done with encoding do POST upload:' + _this.editForm.action);
494494 // ignore warnings & set source type
495495 //_this.formData[ 'wpIgnoreWarning' ]='true';
496 - _this.formData[ 'wpSourceType' ] = 'file';
 496+ _this.formData[ 'wpSourceType' ] = 'upload';
497497 _this.formData[ 'action' ] = 'submit';
498 -
 498+ //wpUploadFile is set by firefogg
 499+ delete _this.formData[ 'wpUploadFile' ];
 500+
 501+
499502 _this.fogg.post( _this.editForm.action, 'wpUploadFile', JSON.stringify( _this.formData ) );
500503 //update upload status:
501504 _this.doUploadStatus();

Status & tagging log