1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-13 10:22:42 +01:00
phorge-phorge/src/applications/files/storage
epriestley eb9dcd6fba Consolidate handling of special properties for newly uploaded files
Summary:
Fixes T5849. When a new file is created, we might have to actually write the data to a storage engine, or we might be able to just point at data which is already there.

Currently, these two paths handle `$params` with different code and mild behavioral differences. Instead, have them call the same code so they get the same behavior.

Test Plan:
  - Uploaded the same file multiple times to home page.
  - Uploaded the same file multiple times as profile picture.
  - Generated files via Diffusion.
  - All the files got the expected properties, whether they were reusing data or not.

Reviewers: btrahan, 20after4

Reviewed By: 20after4

Subscribers: epriestley

Maniphest Tasks: T5849

Differential Revision: https://secure.phabricator.com/D10216
2014-08-11 09:39:40 -07:00
..
__tests__ Remove @group annotations 2014-07-10 08:12:48 +10:00
PhabricatorFile.php Consolidate handling of special properties for newly uploaded files 2014-08-11 09:39:40 -07:00
PhabricatorFileDAO.php Remove @group annotations 2014-07-10 08:12:48 +10:00
PhabricatorFileStorageBlob.php Convert Phabricator to handle "%s" / "%B" properly 2014-02-23 16:20:46 -08:00
PhabricatorFileTransaction.php Rename PHIDType classes 2014-07-24 08:05:46 +10:00
PhabricatorFileTransactionComment.php Remove @group annotations 2014-07-10 08:12:48 +10:00
PhabricatorTransformedFile.php Remove @group annotations 2014-07-10 08:12:48 +10:00