#39: Raw EXIF data is now removed when an existing photo's image is replaced

This commit is contained in:
Andy Heathershaw 2017-09-16 12:52:40 +01:00
parent 88c687a3d1
commit dc2883db20

View File

@ -225,6 +225,7 @@ class PhotoController extends Controller
{
// Photo ID provided (using the Replace Photo function) - use that record
$photo = Photo::where('id', intval($request->get('photo_id')))->first();
$photo->raw_exif_data = null;
/** @var File $savedFile */
$savedFile = FileHelper::saveUploadedFile($photoFile, $queueFolder, $photo->storage_file_name);