Hello! A form comes to me from the frontend, in which there are fields and a file (s).
My steps are like this:
formFields("name") { (name) =>
fileUpload("photo") {
case (metadata, byteSource) =>
But, the file field is optional. When it’s not there, I get the following error:
Request is missing required form field 'photo'
Unfortunately, on the Internet, I did not find how to solve this situation, I will be glad for your help.