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

Display scaled down file size in uploader

    XMLWordPrintable

    Details

    • Change Log Group:
      Fixed
    • Change Log Message:
      Incorrect file size was displayed for an uploaded file, when "storage_format" field option was used.
    • Story Points:
      1
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

    • BC Break Details:
      Hide

      Method "kUploadHelper::handle" now returns an array of filename/size, but before was returning a string with a filename alone.

      Proposing to return data in "filename&|&size" format (hopefully "&|&" separator won't be used in filename ever) instead of "array(filename, size)" format.

      Show
      Method "kUploadHelper::handle" now returns an array of filename/size, but before was returning a string with a filename alone. Proposing to return data in "filename&|&size" format (hopefully "&|&" separator won't be used in filename ever) instead of "array(filename, size)" format.

      Description

      1. in the "\kUploadHelper::handle" method alongside with the filename also return size of uploaded file
      2. in the "\kDBEventHandler::OnUploadFile" method return file size (provided by "\kUploadHelper::handle" method) in "size" array key
      3. in the "Uploader.onUploadFinished" method ("core/admin_templates/js/uploader/uploader.js" file) replace "file.size" with "$json_response.size"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
                Reviewer:
                Erik Snarski [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h