Page MenuHomePhabricator

Reduce Pholio brokenness for non-image files
ClosedPublic

Authored by epriestley on Jun 15 2014, 2:52 PM.
Tags
None
Referenced Files
F13811158: D9548.diff
Wed, Sep 18, 1:47 AM
Unknown Object (File)
Thu, Sep 5, 5:02 AM
Unknown Object (File)
Sun, Sep 1, 5:59 AM
Unknown Object (File)
Sun, Sep 1, 12:28 AM
Unknown Object (File)
Sat, Aug 24, 4:37 PM
Unknown Object (File)
Mon, Aug 19, 2:53 PM
Unknown Object (File)
Aug 15 2024, 12:05 PM
Unknown Object (File)
Aug 7 2024, 10:11 AM
Subscribers

Details

Summary

Ref T5359. When users upload non-image file types (PDFs, text files, whatever), Pholio currently chokes in a few places. Make most of these behaviors more reasonable:

  • Provide thumbs in the required sizes.
  • Predict the thumb size of these files correctly.
  • Disable inline comments.
  • Make "View Fullsize" and "Download" into buttons. These mostly-work. Download should probaly really download, but CSRF on forms is a bit of a pain right now.
Test Plan

See screenshots.

Diff Detail

Repository
rP Phabricator
Branch
pho2
Lint
Lint Passed
SeverityLocationCodeMessage
Advicesrc/applications/pholio/view/PholioMockImagesView.php:65XHP16TODO Comment
Unit
Tests Passed
Build Status
Buildable 1111
Build 1111: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

epriestley retitled this revision from to Reduce Pholio brokenness for non-image files.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.

Viewing a text file:

Screen_Shot_2014-06-15_at_7.42.49_AM.png (570×1 px, 40 KB)

Embed/pin view:

Screen_Shot_2014-06-15_at_7.50.08_AM.png (309×306 px, 9 KB)

Upload view:

Screen_Shot_2014-06-15_at_7.50.14_AM.png (295×982 px, 14 KB)

chad edited edge metadata.
This revision is now accepted and ready to land.Jun 15 2014, 2:57 PM
epriestley edited edge metadata.
  • Rebase into light backgrounds.
epriestley updated this revision to Diff 22885.

Closed by commit rPdcf3b4d32299 (authored by @epriestley).