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

Gravatar is a globally recognized avatar based on your email address. re: Uploading files
  Vincent H.
  FoxInCloud Support - Thierry N.
  Apr 30, 2023 @ 08:53pm

Hi Thierry,

I'm digging up an old post.

Adding in the awImgGetFile class worked fine. Is there a reason for its removal?

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

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

Gravatar is a globally recognized avatar based on your email address. re: Uploading files
  Vincent H.
  FoxInCloud Support - Thierry N.
  May 1, 2023 @ 01:55am

Yes, I have it thank you.

But my class does not contain adding [multiple] like in your post

Gravatar is a globally recognized avatar based on your email address. re: Uploading files
  FoxInCloud Support - Thierry N.
  Vincent H.
  May 1, 2023 @ 03:35am

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.

Gravatar is a globally recognized avatar based on your email address. re: Uploading files
  Vincent H.
  FoxInCloud Support - Thierry N.
  May 1, 2023 @ 04:53am

OK Thank you Thierry

© 1996-2024