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:
parent
4ef3285eb2
commit
f4f4de1b34
@ -2,11 +2,9 @@
|
|||||||
|
|
||||||
namespace App\AlbumSources;
|
namespace App\AlbumSources;
|
||||||
|
|
||||||
use App\Album;
|
|
||||||
use App\Helpers\FileHelper;
|
use App\Helpers\FileHelper;
|
||||||
use App\Helpers\MiscHelper;
|
use App\Helpers\MiscHelper;
|
||||||
use App\Photo;
|
use App\Photo;
|
||||||
use App\Services\PhotoService;
|
|
||||||
use Guzzle\Http\EntityBody;
|
use Guzzle\Http\EntityBody;
|
||||||
use Symfony\Component\HttpFoundation\File\File;
|
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;
|
return $tempFilename;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user