FoxInCloud
Uploading files
Gravatar is a globally recognized avatar based on your email address. Uploading files
  Michele
  All
  May 24, 2020 @ 08:40am

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

Gravatar is a globally recognized avatar based on your email address. re: Uploading files
  Vincent H.
  Michele
  May 24, 2020 @ 09:13am

You can drag & drop more than a file

Gravatar is a globally recognized avatar based on your email address. re: Uploading files
  Michele
  Vincent H.
  May 25, 2020 @ 12:04am

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

Gravatar is a globally recognized avatar based on your email address. re: Uploading files
  FoxInCloud Support - Thierry N.
  Michele
  May 25, 2020 @ 04:20am

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.

Gravatar is a globally recognized avatar based on your email address. re: Uploading files
  Vincent H.
  FoxInCloud Support - Thierry N.
  May 25, 2020 @ 05:12am

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

Gravatar is a globally recognized avatar based on your email address. re: Uploading files
  FoxInCloud Support - Thierry N.
  Vincent H.
  May 25, 2020 @ 08:39am

Just to be sure, when you drag & drop multiple files, do you have one AJAX file upload request per file?

Gravatar is a globally recognized avatar based on your email address. re: Uploading files
  Vincent H.
  FoxInCloud Support - Thierry N.
  May 25, 2020 @ 10:06am

I have a POST request per file

Gravatar is a globally recognized avatar based on your email address. re: Uploading files
  Michele
  Vincent H.
  Jul 10, 2020 @ 12:45am

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

Gravatar is a globally recognized avatar based on your email address. re: Uploading files
  FoxInCloud Support - Thierry N.
  Michele
  Jul 10, 2020 @ 12:45pm

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
	+ [>];
Gravatar is a globally recognized avatar based on your email address. re: Uploading files
  Vincent H.
  FoxInCloud Support - Thierry N.
  Jul 12, 2020 @ 12:17am

Super Thierry ! For me it works perfectly.
We can now select several files which are downloaded successively

© 1996-2020