Fixes #130: Local file system queue copies the file instead of moving it, so the temp file is still available to analyse

This commit is contained in:
Andy Heathershaw 2019-07-27 13:50:27 +01:00
parent 4ef3285eb2
commit f4f4de1b34

View File

@ -2,11 +2,9 @@
namespace App\AlbumSources;
use App\Album;
use App\Helpers\FileHelper;
use App\Helpers\MiscHelper;
use App\Photo;
use App\Services\PhotoService;
use Guzzle\Http\EntityBody;
use Symfony\Component\HttpFoundation\File\File;
@ -177,7 +175,7 @@ class LocalFilesystemSource extends AlbumSourceBase implements IAlbumSource, IAn
}
}
$uploadedFile->move(dirname($tempFilename), basename($tempFilename));
copy($uploadedFile->getRealPath(), $tempFilename);
return $tempFilename;
}