Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/conduit/FileUploadChunkConduitAPIMethod.php
| Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | if (!$start) { | ||||
| $mime_type = null; | $mime_type = null; | ||||
| } else { | } else { | ||||
| $mime_type = 'application/octet-stream'; | $mime_type = 'application/octet-stream'; | ||||
| } | } | ||||
| $params = array( | $params = array( | ||||
| 'name' => $file->getMonogram().'.chunk-'.$chunk->getID(), | 'name' => $file->getMonogram().'.chunk-'.$chunk->getID(), | ||||
| 'viewPolicy' => PhabricatorPolicies::POLICY_NOONE, | 'viewPolicy' => PhabricatorPolicies::POLICY_NOONE, | ||||
| 'chunk' => true, | |||||
| ); | ); | ||||
| if ($mime_type !== null) { | if ($mime_type !== null) { | ||||
| $params['mime-type'] = 'application/octet-stream'; | $params['mime-type'] = 'application/octet-stream'; | ||||
| } | } | ||||
| // NOTE: These files have a view policy which prevents normal access. They | // NOTE: These files have a view policy which prevents normal access. They | ||||
| // are only accessed through the storage engine. | // are only accessed through the storage engine. | ||||
| Show All 27 Lines | |||||