fixed image upload error

This commit is contained in:
vedatakd 2021-03-15 12:12:28 +03:00
parent 0b4824f61c
commit 61a7bbcad6
2 changed files with 3 additions and 1 deletions

View File

@ -294,7 +294,7 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
$thumbnail = $this->fileRepository->findByNameAndFolder($fileName, $folder);
if (!$thumbnail) {
// Create thumbnail image
$image = Image::make(file_get_contents($adv->files[0]->make()->path()));
$image = Image::make(file_get_contents($adv->files[0]->make()->url()));
$image->resize(
null,
setting_value('visiosoft.module.advs::thumbnail_height'),

View File

@ -820,6 +820,8 @@ class AdvsController extends PublicController
$form->render($this->request->update_id);
$adv = $this->adv_repository->find($form->getFormEntryId());
//Create Adress
if ($this->request->address_id != "") {
$address = $address->find($this->request->address_id);