Apologies if this has been covered in the past. I've spent an hour searching and can't find anything.
I have a client who requires their customer to forward/upload an image when completing a form. Of course, people are now taking images willy nilly with their smartphone and trying to upload enormous pictures which are being rejected.
Is there a way to have formbuilder resize images in the process of uploading?
Thanks in advance.
Auto-resize image on upload in FORMBUILDER
Re: Auto-resize image on upload in FORMBUILDER
Not in the process of uploading, only afterwards with CGSmartImage
Re: Auto-resize image on upload in FORMBUILDER
HTML5 supports image resizing by javascript.
However, I never used it myself, nor do I know how well it is supported by different browsers/devices.
Example post (it has JS example): http://www.codeforest.net/html5-image-u ... e-and-crop
Not sure how to integrate that with FormBuilder. Perhaps use JS to catch the onSubmit event and do the resizing if possible. Then 'inject' the resulting image in the form field and post.
Just thinking out loud.
However, I never used it myself, nor do I know how well it is supported by different browsers/devices.
Example post (it has JS example): http://www.codeforest.net/html5-image-u ... e-and-crop
Not sure how to integrate that with FormBuilder. Perhaps use JS to catch the onSubmit event and do the resizing if possible. Then 'inject' the resulting image in the form field and post.
Just thinking out loud.