Page 1 of 2

Image Upload issue for products

Posted: 08 Aug 2017, 07:35
by sumit kaushik
Hello,
I am using aimeos with laravel 5.4. I am facing issue in uploading image for products from admin. It gives me error
No file uploaded for 1. new image, /ext/ai-admin-jqadm/admin/jqadm/src/Admin/JQAdm/Product/Image/Standard.php:420.
Also my laravel is installed in the subdirectory of root.
I am new to Laravel so please help me out to resolve this issue.

Re: Image Upload issue for products

Posted: 08 Aug 2017, 08:29
by aimeos
Besides security issues, Laravel doesn't support installations in subdirectories very well. The ./public/ directory must be the document root of your VHost.

Re: Image Upload issue for products

Posted: 08 Aug 2017, 09:07
by sumit kaushik
Could you please tell me in which folder images will be uploaded for products and categories?
Also it will be ok if i moved only public folder to root and will change index file path?

Re: Image Upload issue for products

Posted: 08 Aug 2017, 15:45
by aimeos
The folders are the ./public/files/ and ./public/preview/ directories in your Laravel application directory. Maybe you forgot to set the permissions correctly so the web server can write into these directories?

Re: Image Upload issue for products

Posted: 10 Aug 2017, 13:17
by sumit kaushik
But issue is on preview of product image it is not taking public in url. That's why it is not showing any image.

Re: Image Upload issue for products

Posted: 10 Aug 2017, 13:44
by aimeos
Like we already said: Laravel doesn't support installing applications in subdirectories well. ./public/ needs to be the document root of your vhost.

Re: Image Upload issue for products

Posted: 20 Aug 2017, 02:03
by sumit kaushik
Hello,

Please suggest me about the subscription feature for my shop. I want to add monthly subscription for products. Please suggest how to achieve it.

Thanks in advance.

Re: Image Upload issue for products

Posted: 01 Jan 2019, 07:46
by hihaider196
Hi,
I am using laravel 5.7 and can't upload product or edit the image of product. i am having error
vendor/aimeos/aimeos-core/lib/mwlib/src/MW/Media/Factory.php in this path and Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Class 'finfo' not found
but with same code i am able to upload pictures locally but not on live, where to add 'finfo' class or change it.(have already copy pasted local file on live but its still giving same error).
please reply me as soon as possible.

Re: Image Upload issue for products

Posted: 01 Jan 2019, 11:09
by aimeos
You haven't installed the php-finfo extension on your server.

Re: Image Upload issue for products

Posted: 02 Jan 2019, 07:50
by hihaider196
Hi,
Can you tell me the path of admin main layouts file so that i can change the content and logo according to my requirement.
and also other views where i can customize more like banner(in Home page) logos and all.
Why i am unable to show price of any product and when i go to basket it shows that price of this product is not present whether i have inserted its price successfully in Admin portal.
ThankYou