Page MenuHomePhabricator

Reduce Pholio brokenness for non-image files
ClosedPublic

Authored by epriestley on Jun 15 2014, 2:52 PM.
Tags
None
Referenced Files
F15532215: D9548.diff
Wed, Apr 23, 2:46 PM
F15516397: D9548.diff
Fri, Apr 18, 6:56 PM
F15422786: D9548.id22885.diff
Mar 22 2025, 10:43 AM
F15416036: D9548.id22885.diff
Mar 20 2025, 8:50 AM
F15390541: D9548.id.diff
Mar 15 2025, 6:18 AM
F15302786: D9548.diff
Mar 5 2025, 9:42 PM
Unknown Object (File)
Mar 3 2025, 11:06 PM
Unknown Object (File)
Mar 1 2025, 2:39 PM
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).