-
15 Mar 2011 12:18 PM #11Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,117
- Vote Rating
- 453
Hope I get to see screenshots at least

Working on progress events. Seems Firefox sends them but Webkit not. Good times when you have a little free timeMitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
15 Mar 2011 12:22 PM #12
Hmm, not sure if I'm allowed to share screenshots, but I will report back if I do anything fancy code-wise.

I'll ignore progress stuff for now. I think client uses Chrome anyway, and Chrome shows progress for uploads by default on the bottom left.Owner of 360releases Ltd. - Sencha Touch & Ext JS consulting
twitter.com/steffenhiller
extjswithrails.com, senchatouchbits.com
-
22 Apr 2011 6:14 AM #13
I need to upload any kind of file so it would be great to be able to do an extjs form submit. Anyone know how to do this?
-
22 Apr 2011 6:16 AM #14Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,117
- Vote Rating
- 453
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
22 Apr 2011 6:18 AM #15
Using this plugin. I am able to upload through a form so that part is all set. The question is how do I grab the file from the plugin and somehow insert it into the form and submit it. Thanks.
-
22 Apr 2011 6:24 AM #16Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,117
- Vote Rating
- 453
This plugin uses the File API, think you need to do some research first.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
26 Sep 2012 1:16 AM #17
Add some feature
Add some feature
Hi mitchellsimoens! I love this plugin and I use it for my project.
What do you think about adding this:
To allow users set clickable - show select file dialog on click over component using this plugin, because in some browsers (safari on MacOS) this plugin didn't works.Code:Ext.define("Ext.plugin.extjs.FileDrop", { extend : "Ext.AbstractPlugin", alias : "plugin.filedrop", readType : "DataURL", clickable: true, init : function(cmp) { var me = this; cmp.addEvents({ fileselected: true, dragover : true, ... initFileDrop: function(cmp) { var me = this, el = me.el || cmp.getEl(); el.on("dragover", me.onDragOver, me); el.on("drop", me.onDrop, me); if (me.clickable) { var file = document.createElement('input'); file.setAttribute('type', 'file'); file.setAttribute('title', 'Upload file'); file.style.width = file.style.height = '100%'; file.style.position = 'absolute'; file.style.left = file.style.top = file.style.opacity = '0'; file = new Ext.Element(file); file.on("change", me.onFileSelected, me); el.appendChild(file); } }, onFileSelected: function(e) { e.stopEvent(); var cmp = this.cmp, files = e.target.files, file, numFiles = files.length, i = 0; cmp.fireEvent("fileselected", cmp, e); for (; i < numFiles; i++) { file = files[i]; this.readFile(file); } },
-
19 Oct 2012 10:55 PM #18
-
28 Nov 2012 2:21 PM #19
File Source
File Source
Thank you for this, it works like a charm but I'm still learning and need a little help submitting multiple files with a form.
all I want to do is take the dropped files and submit them to a url.
sorry if this seems really basic but if you could help I would be very appreciative because I've been at this for quite a while.
-
28 Nov 2012 6:51 PM #20
I've been looking at the docs for a long time. I just wanted to clarify, I want to send the dropped files to a specified url with a form as a multi file post. Being that you can't change the value of a filefield xtype, how is this done?
Similar Threads
-
Highcharts adapter and plugin for ExtJS
By buz in forum Ext 3.x: User Extensions and PluginsReplies: 419Last Post: 15 Jun 2013, 8:47 AM -
Eclipse's Extjs plugin anybody knows one?
By andredecotia in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 15 Dec 2010, 5:40 AM -
How to create plugin for ExtJS
By martinfeng in forum Ext 3.x: User Extensions and PluginsReplies: 4Last Post: 7 Nov 2010, 9:16 AM -
rwt (a ruby on rails plugin for extjs)
By twr in forum Community DiscussionReplies: 1Last Post: 12 Feb 2009, 2:28 AM


Reply With Quote