我想在服务器端处理图像之前预览图像。
我通过以下方式捕获图像:
{
xtype: 'filefield',
cls: 'reset',
width: 357,
fieldLabel: 'Upload Logo',
name: 'file',
allowBlank: false,
emptyText: 'Browse Location...',
size: 40,
validateBlank: true,
vtype: 'fileUpload',
buttonText: 'Browse',
listeners: {
change: {
fn: me.onFilefieldChange,
scope: me
}
}
},
{
xtype: 'button',
handler: function(){
Message.waitForLoading();
var form = this.up('logoandcoloring').getForm();
if (form.isValid()){
form.submit({
// and later processing the request
我正在寻找 Extjs 4.2+ 版本的帮助。
最佳答案
您可以查看示例 clickhere
关于javascript - 如何在 Extjs 4.2+ 中上传前预览图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39167554/