• Resolved jimmi_steen

    (@jimmi_steen)


    So I’m using CMB2 on front end so people can create posts. They can also upload pic as featured image. For the front end form I use the code on github (https://github.com/WebDevStudios/CMB2-Snippet-Library/blob/master/front-end/cmb2-front-end-submit.php). It’s about 90% based on that.

    Now when user tries to upload picture on phone, it usually gives some error. I believe this is because the image is really big (several mb atleast). Any suggestions how could make this better? I think some changes on server side (I know not necessarily nothing do it with cmb2). Also the problem is that when they get error, all input data is lost from the form.

    One thing I was thinking of implementing jQuery File upload js-plugin. With that it supposed to be possible to resizie image on client end before submitting the form. But this might be too hard for me, as I’m more of front end guy and the php stuff looks complex.

    https://www.ads-software.com/plugins/cmb2/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi Jimmi

    I don’t believe there’s going to be much we can do regarding the image upload issue. It sounds like it very well could be something related to your website’s settings and max file size limits. Not something CMB2 controls.

    Not sure regarding the form resetting, ideally upon an error, the fields would retain the $_POST data.

    For the jQuery plugin portion, that’s going to be something outside the scope of our support here.

Viewing 1 replies (of 1 total)
  • The topic ‘Problem with upload big images front end / jQuery File Upload’ is closed to new replies.