Page MenuHomePhabricator

Reduce Pholio brokenness for non-image files
ClosedPublic

Authored by epriestley on Jun 15 2014, 2:52 PM.
Tags
None
Referenced Files
F14032988: D9548.diff
Sat, Nov 9, 4:23 PM
F14021852: D9548.diff
Wed, Nov 6, 1:06 PM
F14002648: D9548.diff
Fri, Oct 25, 8:55 PM
F14000790: D9548.id.diff
Fri, Oct 25, 12:59 AM
F13965631: D9548.id.diff
Wed, Oct 16, 3:16 AM
Unknown Object (File)
Sep 20 2024, 6:43 AM
Unknown Object (File)
Sep 19 2024, 9:15 AM
Unknown Object (File)
Sep 18 2024, 1:47 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).