|
@@ 2252-2255 (lines=4) @@
|
| 2249 |
|
$theDestFile = ''; |
| 2250 |
|
// a FAL file was added, now resolve the file object and get the absolute path |
| 2251 |
|
// @todo in future versions this needs to be modified to handle FAL objects natively |
| 2252 |
|
if (!empty($theFile) && MathUtility::canBeInterpretedAsInteger($theFile)) { |
| 2253 |
|
$fileObject = ResourceFactory::getInstance()->getFileObject($theFile); |
| 2254 |
|
$theFile = $fileObject->getForLocalProcessing(false); |
| 2255 |
|
} |
| 2256 |
|
// NEW FILES? If the value contains '/' it indicates, that the file |
| 2257 |
|
// is new and should be added to the uploadsdir (whether its absolute or relative does not matter here) |
| 2258 |
|
if (strstr(GeneralUtility::fixWindowsFilePath($theFile), '/')) { |
|
@@ 2350-2353 (lines=4) @@
|
| 2347 |
|
$propArr = $this->getRecordProperties($table, $id); |
| 2348 |
|
foreach ($valueArray as &$theFile) { |
| 2349 |
|
// FAL handling: it's a UID, thus it is resolved to the absolute path |
| 2350 |
|
if (!empty($theFile) && MathUtility::canBeInterpretedAsInteger($theFile)) { |
| 2351 |
|
$fileObject = ResourceFactory::getInstance()->getFileObject($theFile); |
| 2352 |
|
$theFile = $fileObject->getForLocalProcessing(false); |
| 2353 |
|
} |
| 2354 |
|
if ($this->alternativeFilePath[$theFile]) { |
| 2355 |
|
// If alternative File Path is set for the file, then it was an import |
| 2356 |
|
// don't import the file if it already exists |