Page MenuHomePhabricator

Reduce Pholio brokenness for non-image files
ClosedPublic

Authored by epriestley on Jun 15 2014, 2:52 PM.
Tags
None
Referenced Files
F15302786: D9548.diff
Wed, Mar 5, 9:42 PM
Unknown Object (File)
Mon, Mar 3, 11:06 PM
Unknown Object (File)
Sat, Mar 1, 2:39 PM
Unknown Object (File)
Tue, Feb 25, 4:57 PM
Unknown Object (File)
Sun, Feb 9, 1:35 PM
Unknown Object (File)
Feb 2 2025, 9:22 AM
Unknown Object (File)
Jan 24 2025, 3:42 AM
Unknown Object (File)
Jan 21 2025, 9:04 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).