View Full Version : how to insert images extjs 4.0 with PHP

20 May 2013, 10:49 PM
please, someone help me!

i can't send my image to uploaded folder, i use methode : GET , but if i use methode : POST i can't send my paramaters textfield,combo, fileupload etc. how to upload image in extjs 4.0 ?

Ganjar ~o)

21 May 2013, 12:50 AM
Uploading is done with a multipart form. That is a POST. Else you have to encode your data in a binary string.

I think you can just use an ordinary Ext form for that, and include your needed text- combofields with it.

26 May 2013, 8:18 PM
can you give me one sample?

26 May 2013, 8:58 PM
Look under /examples/form/file-upload.html in the SDK. There's all the code you need.

26 May 2013, 9:12 PM
{ xtype: 'filefield', id: 'form-file', emptyText: 'Select an image', fieldLabel: 'Photo', name: 'photo-path', buttonText: '', buttonConfig: { iconCls: 'upload-icon'}

in php i can't show my parameters filefield,how can i show it?