hier mal mein aktueller Code Model: Ext.define('Shopware.apps.RtrauTest.model.Test', { extend: 'Shopware.data.Model', configure: function () { return { controller: 'RtrauTest', detail: 'Shopware.apps.RtrauTest.view.detail.Test' }; }, fields: [{ name: 'id', type: 'int', useNull: true }, { name: 'active', type: 'boolean' }, { name: 'fileupload', type: 'string' }, { name: 'sort', type: 'int' },], });
Controller (main.js) Ext.define('Shopware.apps.RtrauTest.controller.Main', { extend: 'Enlight.app.Controller', init: function () { var me = this; me.mainWindow = me.getView('list.Window').create({ }).show(); me.callParent(arguments); } });
Detail View Ext.define('Shopware.apps.RtrauTest.view.detail.Test', { extend: 'Shopware.model.Container', padding: 20, initComponent: function() { var me = this; me.callParent(arguments); }, configure: function () { return { controller: 'RtrauTest', fieldSets: [{ title: 'TestDetails', fileUpload: true, layout: 'fit', fields: { active: {}, fileupload: { xtype: 'filefield', emptyText: 'Upload', buttonText: 'Upload', name: 'test', fieldLabel: 'File', allowBlank: false, buttonConfig: { cls: 'small secondary' } }, sort: { fieldLabel: 'Sortiernummer' }, } }] }; } });
Hat hier jemand eine Idee warum das File nicht übermittelt wird bzw. das $_FILES Array nicht befüllt ist? Danke schonmal im Voraus!