|
@@ 170-174 (lines=5) @@
|
| 167 |
|
AclInterface $removeAces = null, |
| 168 |
|
ExtensionDataInterface $extension = null |
| 169 |
|
) { |
| 170 |
|
if ($folderId === null) { |
| 171 |
|
$url = $this->getRepositoryUrl($repositoryId); |
| 172 |
|
} else { |
| 173 |
|
$url = $this->getObjectUrl($repositoryId, $folderId); |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
// Guzzle gets the mime type for a file by the filename extension. Sometimes the filename does not contain |
| 177 |
|
// the correct filename extension for example when a file is uploaded in php it gets a temporary name without |
|
@@ 243-247 (lines=5) @@
|
| 240 |
|
AclInterface $removeAces = null, |
| 241 |
|
ExtensionDataInterface $extension = null |
| 242 |
|
) { |
| 243 |
|
if ($folderId === null) { |
| 244 |
|
$url = $this->getRepositoryUrl($repositoryId); |
| 245 |
|
} else { |
| 246 |
|
$url = $this->getObjectUrl($repositoryId, $folderId); |
| 247 |
|
} |
| 248 |
|
|
| 249 |
|
$queryArray = $this->createQueryArray( |
| 250 |
|
Constants::CMISACTION_CREATE_DOCUMENT_FROM_SOURCE, |