What would be the other ways of fixing corrupted project files, other than forcefully updating framework files, etc.?

Can you test with this?

{
  "meta": {
    "options": {
      "linkedFile": "/views/layouts/admin.ejs",
      "linkedForm": "uploadMediaForm"
    },
    "$_POST": [
      {
        "type": "file",
        "fieldName": "file1",
        "name": "file1",
        "sub": [
          {
            "type": "text",
            "name": "name"
          },
          {
            "type": "text",
            "name": "type"
          },
          {
            "type": "number",
            "name": "size"
          },
          {
            "type": "text",
            "name": "error"
          }
        ],
        "outputType": "file"
      },
      {
        "type": "text",
        "fieldName": "height",
        "name": "height"
      },
      {
        "type": "text",
        "fieldName": "width",
        "name": "width"
      },
      {
        "type": "text",
        "fieldName": "imageQuaility",
        "name": "imageQuaility"
      },
      {
        "type": "text",
        "fieldName": "imageOutputSelector",
        "name": "imageOutputSelector"
      }
    ]
  },
  "exec": {
    "steps": {
      "name": "upload",
      "module": "upload",
      "action": "upload",
      "options": {
        "path": "/public/assets/uploads",
        "fields": "{{$_POST.file1}}"
      },
      "meta": [
        {
          "name": "name",
          "type": "text"
        },
        {
          "name": "path",
          "type": "text"
        },
        {
          "name": "url",
          "type": "text"
        },
        {
          "name": "type",
          "type": "text"
        },
        {
          "name": "size",
          "type": "text"
        },
        {
          "name": "error",
          "type": "number"
        }
      ],
      "outputType": "file"
    }
  }
}

Em... wait.. what hell? it worked! :clap: :clap:

Glad you got it working
I think this was the problem:

 "type": "text",
        "fieldName": "imageQuaility",
        "options": {
          "rules": {
            "core:range": {}
          }
        },

As you can see there's a validation, but at the same time it's not.

Can you reproduce it and see how exactly that part is not being deleted from the code so the team can look at it?
There was a validation before on imageQuaility and which one?

Much appreciated for your help by the way @franse !

And for reproducing the issue, I'm not entirely sure how I managed to produce it in the first place, since it's seems to be working now, and producing the file upload form the way I did before, seems to be working too... :man_facepalming: Appreciate all your help!

1 Like