CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

How to transform the file before send to the server?

by DelphiStudent » 04 Feb 2019 21:51

JQMFileUpload is very usefull,
am trying to use it to take users profile picture.

when the user press the button "upload", the mobile device ask the source of the file, the camera, the internal files, or a video.

When the user take a picture with his mobile's camera, this file is sent to the server. Usually the photo file is around 4 Mb, and the transmition takes several minutes.

when the file is uploaded, a onComplete event is fired. over that place I can take the file, and process it (process, I mean resize the photo resolution because I don't need that big photo. just something like 300X200).

what's the problem?
I do want to resize the photo file just before send it.
but I don't know if this is posible, I found that the OnSubmit event is fired at the moment of the selection of the file, but, how to manipulate the file,
where is the file before the upload process?
none of the events has a parameter with the selected file.

Thanks
DelphiStudent
 
Posts: 11
Joined: 15 May 2017 21:45

by Alexander Bulei » 06 Feb 2019 10:14

Hi DelphiStudent,

I've implemented the new property for this purpose - ImageResizer.
Available in last beta release.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by DelphiStudent » 07 Feb 2019 03:41

Great. you mean, for version, 4.1.0.153 ?

where can I read how to use it,?
some demo?
DelphiStudent
 
Posts: 11
Joined: 15 May 2017 21:45


Return to JQMFileUpload

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.