Image Upload

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
cristal2346
Posts: 2
Joined: 30 Sep 2017, 15:01

Image Upload

Post by cristal2346 » 09 Oct 2017, 04:10

Hi,,, How can I change the file storage path uploaded to public_html instead of public folder ? :?:
I use Laravel 5.5 and the dev-master aimeos package
*) MyFolder // Project Folder
*) public_html // Root Folder
Thank you, all responses will be greatly appreciated
Note: This problem for shared hosting, for local development it seems all is fine

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

Re: Image Upload

Post by aimeos » 09 Oct 2017, 21:27

Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

cristal2346
Posts: 2
Joined: 30 Sep 2017, 15:01

Re: Image Upload

Post by cristal2346 » 10 Oct 2017, 15:27

Thank you for your prompt response, I've tried to do like that and also have followed some articles like
https://blog.tiger-workshop.com/change- ... laravel-5/
https://www.dvdheiden.nl/2015/06/13/lar ... directory/
But I still have the same problem, every file that is uploaded is always stored in public folder application. Even if the public folder is deleted, the public folder will be re-created when trying to upload the file again. I also tried to re-install via ssh then move all files from public folder to public_html folder as usual, but the problem is not solved.

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

Re: Image Upload

Post by aimeos » 10 Oct 2017, 20:19

If you are able to successfully change the output of "public_path()" to your "./public_html" directory, then it will work because the filesystem configuration for image uploads is

Code: Select all

	'resource' => array(
		'fs' => array(
			'adapter' => 'Standard',
			'basedir' => public_path(),
			'tempdir' => storage_path( 'tmp' ),
		),
	),
You could overwrite the "fs" resource in your ./config/shop.php but that would only affect Aimeos, not the rest of your Laravel application.
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

Post by hihaider196 » 14 Jan 2019, 08:00

Hi,
I am unable to upload image of product from mobile when i am using Aimeos in App. Please guide me with details.

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

Re: Image Upload

Post by aimeos » 14 Jan 2019, 13:16

It works without problems from an Android smart phone in the admin interface demo:
http://admin.demo.aimeos.org

Please check if your APP_URL in the .env file of your application is correct (incl. port, etc.)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply