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

Rename "kUploadFormatter::ValidateFileName" method

    XMLWordPrintable

    Details

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

      Description

      Method ValidateFileName of class kUploadFormatter doesn't validate anything, but it actually generates new filename for uploaded file in case, when given filename is already used by other file in same directory.

      There are 2 possible solutions:
      1. make this method validate filename (returns true/false) and move current method body to new method _generateFileName
      2. rename method to _generateFileName, because for now it does only that.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: