Version: 4.1.3 Reporter: Derek Jones —
test.txt
Result:
Exception Caught
Cannot copy non-existent path: /path/to/upload/dir/_manipulation_name/test_1.txt
ee/EllisLab/ExpressionEngine/Library/Filesystem/Filesystem.php:339
Stack Trace: Please include when reporting this error
#0 ee/EllisLab/ExpressionEngine/Service/File/Upload.php(472): EllisLab\ExpressionEngine\Library\Filesystem\Filesystem->copy('...', '...')
#1 ee/EllisLab/ExpressionEngine/Controller/Files/Files.php(246): EllisLab\ExpressionEngine\Service\File\Upload->resolveNameConflict('12')
#2 [internal function]: EllisLab\ExpressionEngine\Controller\Files\Files->finishUpload('12')
In the resolveNameConflict()
method of system/ee/EllisLab/ExpressionEngine/Service/File/Upload.php
, around line 468 change:
foreach ($file->UploadDestination->FileDimensions as $fd)
{
$src = $fd->getAbsolutePath() . $file->file_name;
$dest = $fd->getAbsolutePath() . $original->file_name;
ee('Filesystem')->copy($src, $dest);
}
to:
foreach ($file->UploadDestination->FileDimensions as $fd)
{
$src = $fd->getAbsolutePath() . $file->file_name;
$dest = $fd->getAbsolutePath() . $original->file_name;
if (ee('Filesystem')->exists($src))
{
ee('Filesystem')->copy($src, $dest);
}
}
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```