Homec4science

Fix pastebin mimetypes.

Authored by Ricky Elrod <ricky@elrod.me> on Jun 10 2011, 20:52.

Description

Fix pastebin mimetypes.

Summary:
PhabricatorFile() was setting the mimetype based on extension, meaning that you couldn't view the plain-text file if you saved a file, for example, as a .php. It would set the mimetype to "text/x-php; charset=us-ascii". In this commit, I force the mimetype to text/plain.

Test Plan:
Tried pasting a new file and was able to both see it via the pastebin viewer and in plain-text via File.

Reviewers:
epriestley

CC:

Differential Revision: 429

Details

Committed
Ricky Elrod <ricky@elrod.me>Jun 10 2011, 21:04
Pushed
aubortJan 31 2017, 17:16
Parents
rPHfaee2d284fbe: Merge pull request #14 from CodeBlock/master
Branches
Unknown
Tags
Unknown

Event Timeline

Ricky Elrod <ricky@elrod.me> committed rPH7734cab580b9: Fix pastebin mimetypes. (authored by Ricky Elrod <ricky@elrod.me>).Jun 10 2011, 21:04