Page MenuHomeIn-Portal Phabricator

INP-1774 - Display scaled down file size in uploader
AcceptedPublic

Authored by alex on Jul 5 2019, 10:12 AM.

Details

Reviewers
erik
Test Plan
  • in IDE:
    1. open modules/in-bulletin/units/polls/polls_config.php file for editing
    2. change Image field declaration to add storage_format field option with resize:100x100 value
    3. save changes
  • in Admin Console:
    1. go to the Website & ContentPolls section
    2. click on Add toolbar button
    3. in the Image field upload an image larger, than 100x100 and with filesize larger than 1MB
    4. confirm that in uploader control the resized file size is shown
    5. to confirm that the image opened after clicking on the thumbnail preview actually was resized to 100px by one of the sides
    6. go to the Logs & ReportsSystem Log section
    7. confirm that the filesize(): stat failed for ... warning isn't shown anymore

Diff Detail

Repository
rINP In-Portal
Branch
branches/5.2.x
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 11125
Build 3825: arc lint + arc unit

Event Timeline

alex created this revision.Jul 5 2019, 10:12 AM
alex requested review of this revision.Jul 5 2019, 10:12 AM
alex added a project: Restricted Project.Jul 5 2019, 10:19 AM
erik accepted this revision.Jul 12 2019, 5:45 AM
This revision is now accepted and ready to land.Jul 12 2019, 5:45 AM
alex updated this revision to Diff 1375.Thu, Aug 14, 5:26 AM

Fixed the filesize(): stat failed for error when uploading file larger, than 1MB.

alex requested review of this revision.Thu, Aug 14, 5:36 AM
alex edited the test plan for this revision. (Show Details)
erik accepted this revision.Thu, Aug 14, 1:36 PM
This revision is now accepted and ready to land.Thu, Aug 14, 1:36 PM