Hi all, I am using Shopware 4 REST API to upload images to an article in my store. Endpoint is /api/articles with method: PUT But response with message bellow: {„success“:true,„data“:{„data“:{„success“:false,„message“:„File not found: /var/www/demo-removethebackground/media/image/f.jpg“,„trace“:"#0 /var/www/base-433/engine/Shopware/Components/Thumbnail/Manager.php(155): Shopware\Components\Thumbnail\Generator\Basic->createThumbnail(’/var/www/demo-r…’, ‚/var/www/demo-r…‘, ‚30‘, ‚30‘, true)\n#1 /var/www/base-433/engine/Shopware/Components/Api/Resource/Media.php(316): Shopware\Components\Thumbnail\Manager->createMediaThumbnail(Object(Shopware\Models\Media\Media), Array, true)\n#2 /var/www/base-433/engine/Shopware/Components/Api/Resource/Article.php(1619): Shopware\Components\Api\Resource\Media->internalCreateMediaByFileLink(‚https://s3-eu-w…‘)\n#3 /var/www/base-433/engine/Shopware/Components/Api/Resource/Article.php(729): Shopware\Components\Api\Resource\Article->prepareImageAssociatedData(Array, Object(Shopware\Models\Article\Article))\n#4 /var/www/base-433/engine/Shopware/Components/Api/Resource/Article.php(613): Shopware\Components\Api\Resource\Article->prepareAssociatedData(Array, Object(Shopware\Models\Article\Article))\n#5 /var/www/base-433/engine/Shopware/Components/Api/Resource/Resource.php(523): Shopware\Components\Api\Resource\Article->update(‚168‘, Array)\n#6 /var/www/base-433/engine/Shopware/Controllers/Api/Rest.php(79): Shopware\Components\Api\Resource\Resource->batch(Array)\n#7 /var/www/base-433/engine/Library/Enlight/Controller/Action.php(159): Shopware_Controllers_Api_Rest->batchAction()\n#8 /var/www/base-433/engine/Library/Enlight/Controller/Dispatcher/Default.php(528): Enlight_Controller_Action->dispatch(‚batchAction‘)\n#9 /var/www/base-433/engine/Library/Enlight/Controller/Front.php(228): Enlight_Controller_Dispatcher_Default->dispatch(Object(Enlight_Controller_Request_RequestHttp), Object(Enlight_Controller_Response_ResponseHttp))\n#10 /var/www/base-433/engine/Shopware/Kernel.php(142): Enlight_Controller_Front->dispatch()\n#11 /var/www/base-433/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(472): Shopware\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)\n#12 /var/www/base-433/engine/Shopware/Components/HttpCache/AppCache.php(256): Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL)\n#13 /var/www/base-433/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(243): Shopware\Components\HttpCache\AppCache->forward(Object(Symfony\Component\HttpFoundation\Request), true)\n#14 /var/www/base-433/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(260): Symfony\Component\HttpKernel\HttpCache\HttpCache->pass(Object(Symfony\Component\HttpFoundation\Request), true)\n#15 /var/www/base-433/engine/Shopware/Components/HttpCache/AppCache.php(132): Symfony\Component\HttpKernel\HttpCache\HttpCache->invalidate(Object(Symfony\Component\HttpFoundation\Request), true)\n#16 /var/www/base-433/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php(189): Shopware\Components\HttpCache\AppCache->invalidate(Object(Symfony\Component\HttpFoundation\Request), true)\n#17 /var/www/base-433/engine/Shopware/Components/HttpCache/AppCache.php(113): Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)\n#18 /var/www/base-433/shopware.php(109): Shopware\Components\HttpCache\AppCache->handle(Object(Symfony\Component\HttpFoundation\Request))\n#19 {main}"}}} Do you have any suggestions on this problem? Thank you, Trung
Do you read the error message ? File not found: /var/www/demo-removethebackground/media/image/f.jpg" And take a look at your / - of course the file cant be found. can you post your complete API Code ?