@@ 160-164 (lines=5) @@ | ||
157 | AclInterface $removeAces = null, |
|
158 | ExtensionDataInterface $extension = null |
|
159 | ) { |
|
160 | if ($folderId === null) { |
|
161 | $url = $this->getRepositoryUrl($repositoryId); |
|
162 | } else { |
|
163 | $url = $this->getObjectUrl($repositoryId, $folderId); |
|
164 | } |
|
165 | ||
166 | // Guzzle gets the mime type for a file by the filename extension. Sometimes the filename does not contain |
|
167 | // the correct filename extension for example when a file is uploaded in php it gets a temporary name without |
|
@@ 233-237 (lines=5) @@ | ||
230 | AclInterface $removeAces = null, |
|
231 | ExtensionDataInterface $extension = null |
|
232 | ) { |
|
233 | if ($folderId === null) { |
|
234 | $url = $this->getRepositoryUrl($repositoryId); |
|
235 | } else { |
|
236 | $url = $this->getObjectUrl($repositoryId, $folderId); |
|
237 | } |
|
238 | ||
239 | $queryArray = $this->createQueryArray( |
|
240 | Constants::CMISACTION_CREATE_DOCUMENT_FROM_SOURCE, |