FoxInCloud
Awimggetpict - Sting too long
Gravatar is a globally recognized avatar based on your email address. Awimggetpict - Sting too long
  Vincent H.
  All
  Nov 29, 2019 @ 09:00am

Hi Thierry,

Downloading a 24MB piece with Awimggetpict() causes a serious error, of course linked to the limits of VFP 32bits.
Would it be possible to use the Rick bypass .lUseLargePostBuffer = .T. (with Awimggetpict) ?

Thanks in advance,

Vincent

Gravatar is a globally recognized avatar based on your email address. re: Awimggetpict - Sting too long
  FoxInCloud Support - Thierry N.
  Vincent H.
  Nov 30, 2019 @ 03:04am

Hi Vincent,

.lUseLargePostBuffer applies to download while awImgGetPict (derived from awImgGetFile) generates an Ajax File Upload command using the jQuery File Upload library.

In jQuery File Upload we can implement a validation process with maxFileSize as an option; however this implementation is pretty complex and would require extensive testing.

Documentation also mentions the ability to resize image on client side before upload, however this would require new properties to awImgGetPict to fine tune the size you expect for each object of that class.

Both can be an evolution project.

Gravatar is a globally recognized avatar based on your email address. re: Awimggetpict - Sting too long
  Gilles Lajot-Sarthou
  FoxInCloud Support - Thierry N.
  Nov 30, 2019 @ 05:15am

Bonjour Thierry i am also very interesting with the ability of resize image on client side..

Amicalement Gilles

Gravatar is a globally recognized avatar based on your email address. re: Awimggetpict - Sting too long
  Vincent H.
  FoxInCloud Support - Thierry N.
  Nov 30, 2019 @ 05:25am

Well ...
Question can be innocent: why not do an ftp transfer of the file ?

Gravatar is a globally recognized avatar based on your email address. re: Awimggetpict - Sting too long
  FoxInCloud Support - Thierry N.
  Vincent H.
  Nov 30, 2019 @ 08:29am

Because AJAX supports the http protocol only, not ftp, and you’d need to install a ftp server, another deployment pain.

Gravatar is a globally recognized avatar based on your email address. re: Awimggetpict - Sting too long
  Vincent H.
  FoxInCloud Support - Thierry N.
  Nov 30, 2019 @ 10:27am

OK Thierry, it's really necessary for us to be able to file PDFs greater than 16 MB.
At first, is it possible to set up a size test to avoid the download error ?
Have a nice week end
Vincent

Gravatar is a globally recognized avatar based on your email address. re: Awimggetpict - Sting too long
  FoxInCloud Support - Thierry N.
  Vincent H.
  Dec 1, 2019 @ 08:47am

FoxinCloud already uses this library; please see my earlier post.

Gravatar is a globally recognized avatar based on your email address. re: Awimggetpict - Sting too long
  Vincent H.
  FoxInCloud Support - Thierry N.
  Dec 1, 2019 @ 10:44am

Oops, sorry ...

Can adaptation be considered and can we exceed 16 MB ?

Gravatar is a globally recognized avatar based on your email address. re: Awimggetpict - Sting too long
  FoxInCloud Support - Thierry N.
  Vincent H.
  Dec 2, 2019 @ 03:57am

This evolution is complex, I don't know yet how long it'll take -- more than a day for sure.

More than 16 MB: as the code of wwRequest:GetMultipartFile() uses variables, impossible with VFP/wConnect. It requires another Ajax request server-side handler written in another language without limitation on variable size.

© 1996-2024