Support the ongoing development of Laravel.io →
posted 10 years ago
Packages

hello,

I installed this package and made a upload field. Now as I want to save the product with the image I see the above message.

I changed the permission to 666 and 775 but no luck.

You can find my controller here : https://github.com/roelof1967/laravel_commerce_try/blob/master/app/controllers/ProductsController.php

Roelof

Last updated 3 years ago.
0

Have you tried using an absolute path on line 34 where you try to save the image?

If the uploads fail due to the hosts file system, you can try using Laravels public_path i.e. public_path().'/uploads'

0

You may try to use public_path() method to get the path to image.

0

Thanks,

Could one of you give me a example what you mean with using the public_path() ?

Roelof

Edit 1: Or do you mean the solution in this topic : http://laravel.io/forum/04-05-2014-cant-write-image-data-to-path

Last updated 10 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.