Image Upload issue for products

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
sumit kaushik
Posts: 30
Joined: 08 Aug 2017, 07:20

Image Upload issue for products

Post by sumit kaushik » 08 Aug 2017, 07:35

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.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Image Upload issue for products

Post by aimeos » 08 Aug 2017, 08:29

Besides security issues, Laravel doesn't support installations in subdirectories very well. The ./public/ directory must be the document root of your VHost.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

sumit kaushik
Posts: 30
Joined: 08 Aug 2017, 07:20

Re: Image Upload issue for products

Post by sumit kaushik » 08 Aug 2017, 09:07

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?

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Image Upload issue for products

Post by aimeos » 08 Aug 2017, 15:45

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?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

sumit kaushik
Posts: 30
Joined: 08 Aug 2017, 07:20

Re: Image Upload issue for products

Post by sumit kaushik » 10 Aug 2017, 13:17

But issue is on preview of product image it is not taking public in url. That's why it is not showing any image.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Image Upload issue for products

Post by aimeos » 10 Aug 2017, 13:44

Like we already said: Laravel doesn't support installing applications in subdirectories well. ./public/ needs to be the document root of your vhost.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

sumit kaushik
Posts: 30
Joined: 08 Aug 2017, 07:20

Re: Image Upload issue for products

Post by sumit kaushik » 20 Aug 2017, 02:03

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.

hihaider196
Posts: 13
Joined: 27 Dec 2018, 07:32

Re: Image Upload issue for products

Post by hihaider196 » 01 Jan 2019, 07:46

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.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Image Upload issue for products

Post by aimeos » 01 Jan 2019, 11:09

You haven't installed the php-finfo extension on your server.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

hihaider196
Posts: 13
Joined: 27 Dec 2018, 07:32

Re: Image Upload issue for products

Post by hihaider196 » 02 Jan 2019, 07:50

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

Post Reply