Page MenuHomePhabricator

Reduce Pholio brokenness for non-image files
ClosedPublic

Authored by epriestley on Jun 15 2014, 2:52 PM.
Tags
None
Referenced Files
F14339038: D9548.diff
Wed, Dec 18, 6:39 PM
Unknown Object (File)
Tue, Dec 10, 1:00 PM
Unknown Object (File)
Tue, Dec 10, 11:00 AM
Unknown Object (File)
Tue, Dec 3, 5:12 PM
Unknown Object (File)
Mon, Dec 2, 12:19 PM
Unknown Object (File)
Tue, Nov 26, 6:59 PM
Unknown Object (File)
Fri, Nov 22, 4:47 AM
Unknown Object (File)
Nov 18 2024, 11:20 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).