0

I am using thinkCMF Chinees PHP framework for the backend and Vue for the front end.

I wanted to make an image upload optional and I removed it from the server required (Controller).

but submitting the form it was giving the above error.

I changed the column varchar(200) to varchar(500) but didn't work.

Feridun
  • 137
  • 7
  • 1
    if it is not a required field, Then you need to check, what data come in it after submit, Or make data type text in place of varchar to handle long data string. – Deepak3301086 Mar 17 '22 at 09:09

1 Answers1

1

We check the value of image upload in the front end. we make it optional from the front end then the issue is solved.

I was looking for a solution for a backend project but the solution was in a front-end project.

so the front team solved the problem.

Feridun
  • 137
  • 7