1

I am busy building a web map app using boundless SDK. I am trying to implement a file up-loader, however, the majority of examples use new Ext.ux.form.FileUploadField When I try to use it in my project it says that the xtype is not recognised.

I am currently using this: xtype : 'textfield', inputType:'file', But I find it cumbersome, ugly and have to add allot of extra code to make sure validation fires when file is selected etc...

How can I make the FileUpload UX plugin part of my project?

I am quite new to the environment.

2

Just look at how this is done in GeoExplorer: https://github.com/boundlessgeo/suite/tree/master/geoexplorer/app/static/script/ux

1) Add the Ext JS user extension to scripts/ux 2) Add it your buildjs.cfg file: https://github.com/boundlessgeo/suite/blob/master/geoexplorer/buildjs.cfg

It should then get included in the build of your application if you add a @require for it in your code.

  • Thank you. I will have a look at it. So far it looks like what I am looking for. – Albert van Niekerk Jul 6 '15 at 13:02
  • I was as bit confused about the implementation of the solution, but got it working after a bit of reading and figuring out. Thank you. – Albert van Niekerk Jul 22 '15 at 12:38
  • Just one last remark, you would not by any chance have the answer to this question. It is with regard to getting the response from PHP after file has been processed on server – Albert van Niekerk Jul 23 '15 at 7:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.