In my forms to upload locals file to my app from any device, i use awcntgetfile class. Is there the possibility to upload not one only file each time, but to select more in only one time ?
Thanks
You can drag & drop
more than a file
in wFormCallBack of the class i use i receive as parameter the file name i selected, not a list or an array and on the device, i don't know why but i can't select more than one file each time....Tested on two different devices.... Tablet Samsung and smartphone Huawei
Ciao Michele,
Yes it's currently limited to one file at a time while the blueimp-file-upload
control allows several files.
We'll see how to allow several files and feedback.
It would actually make sense to be able to select multiple files.
But I confirm that it works with drag & drop, without any particular modification of the code in the callBack method
Just to be sure, when you drag & drop multiple files, do you have one AJAX file upload request per file?
I have a POST request per file
Some news about this problem ? At the moment i can't upload more than one file at each time from my mobile devices.... My customers ask for this options when uploading many photos from device to server.... Is there the possibility to find this option with an update ? Thanks
Can you try this enhancement?
modify class awImgGetFile of aw method wcHTMLgen
toHTML.cHTMLadd = m.toHTML.cHTMLadd + Textmerge('';
+ [<input type="file" id="<<m.lcInputID>>" name="cFile" title="<<m.lcTitle>>"];
+ [ style="];
+ [opacity:0;];
+ [cursor:pointer;];
+ [position:absolute;];
+ [left:<<Iif(m.llCntGetFile, '0', Cast(this.Left as M) + 'px')>>;];
+ [top:<<Iif(m.llCntGetFile, '0', Cast(this.Top as M) + 'px')>>;];
+ [width:<<Iif(m.llCntGetFile, '120%', Cast(this.Width as M) + 'px')>>;]; && 2016-10-11 thn -- {FiC V 2.22.0-beta.8} {en} make sure the wole area is clickable
+ [height:<<Iif(m.llCntGetFile, '100%', Cast(this.Height as M) + 'px')>>;];
+ Iif(m.llCntGetFile, 'margin-left:-20%;', '');
+ ["];
+ [ multiple]; && add this line
+ [>];
Super Thierry ! For me it works perfectly.
We can now select several files
which are downloaded successively
Hi Thierry,
I'm digging up an old post.
Adding in the awImgGetFile class worked fine. Is there a reason for its removal?
Hi Vincent,
aw.vcx:awImgGetFile
still exists…
Not sure why you don't have it… you can grab an up-to-date aw.vc?
here: ftp://foxincloud/com/ab
Yes, I have it thank you.
But my class does not contain adding [multiple] like in your post
Sorry, did not notice the rest of the thread…
Probably a bug in code synchronisation, please restore the line and hopefully it'll still be here in next update.