modal : true,
resizable : false,
title : "Upload an Image or File",
- uploadProgress : false,
+ uploadComplete : false,
width : 500,
shadow : true,
- uploadProgres : function()
+ uploadProgress : function()
{
var dlg = this;
if (!dlg.haveProgress) {
_this.dialog.el.unmask();
if (act.type == 'setdata') {
- this.url = _this.data._url ? _this.data._url : baseURL + '/Roo/Images.php'
+ this.url = _this.data._url ? _this.data._url : baseURL + '/Roo/Images.php';
+ this.el.dom.action = this.url;
this.findField('UPLOAD_IDENTIFIER').setValue(
(new Date() * 1) + '' + Math.random());
if (act.type == 'submit') { // only submitted here if we are
_this.dialog.hide();
+
//console.log(act);
if (_this.callback) {
_this.callback.call(this, act.result.data);
Ext.MessageBox.alert("Error", "Error loading details");
}
},
+ fileUpload : true,
labelWidth : 140,
method : 'POST',
style : 'margin:10px;',
_this.dialog.el.mask("Sending");
_this.dialog.uploadComplete = false;
_this.form.doAction('submit', {
- url: baseURL + '/Roo/Images.html',
- method: 'POST',
params: {
- // _id: 0 ,
ts : Math.random()
}
});