|
@@ 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 |
|
@@ 251-255 (lines=5) @@
|
| 248 |
|
AclInterface $removeAces = null, |
| 249 |
|
ExtensionDataInterface $extension = null |
| 250 |
|
) { |
| 251 |
|
if ($folderId === null) { |
| 252 |
|
$url = $this->getRepositoryUrl($repositoryId); |
| 253 |
|
} else { |
| 254 |
|
$url = $this->getObjectUrl($repositoryId, $folderId); |
| 255 |
|
} |
| 256 |
|
|
| 257 |
|
$queryArray = $this->createQueryArray( |
| 258 |
|
Constants::CMISACTION_CREATE_DOCUMENT_FROM_SOURCE, |