Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1119

Always typecast Basic Uploader error code to integer

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2.0-RC1
    • Fix Version/s: 5.2.0
    • Component/s: File Uploader
    • Labels:
      None

      Description

      I was testing out 5.2.0-RC1 release recently and found, that no upload can be made on Front-End.
      For example on a link submission page select an image and try to upload it. Error "Can't save file" will be displayed, but "/system/images/" folder is writable and I've checked it twice.

      After some investigation I've found that this happened because of a fix in #0001291 task, where variable $value['error'] containing regular upload status code was converted to string, but later on was compares using "===" operator with integer constant resulting in "no match" at all times.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: