Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vendor can't add a product picture #91

Open
pacino01 opened this issue Nov 29, 2023 · 7 comments
Open

Vendor can't add a product picture #91

pacino01 opened this issue Nov 29, 2023 · 7 comments

Comments

@pacino01
Copy link

pacino01 commented Nov 29, 2023

vendor

Vendor can't add a product picture, error code after uploading the picture : "You don't have any images added, it must be at least one!"

@knulii
Copy link
Contributor

knulii commented Nov 30, 2023

Sounds like a permission issue with the storage/public folder
double check you got the permissions correct
https://github.com/eckmarcommunity/eckmar/blob/master/INSTALLATION.md#permissions

@ffeel31
Copy link

ffeel31 commented Nov 30, 2023

I have same kind of issue. any picture i try to upload it says "the Picture must be and Image"
please help
FireShot Capture 005

@knulii
Copy link
Contributor

knulii commented Dec 1, 2023

try a .png image

@ffeel31
Copy link

ffeel31 commented Dec 1, 2023

but i want to be able to upload other picture formats like jpg and gif.
I have tried to modify the code here like this but still not working

public function rules()
{
return [
'picture' => 'required|image| mimes:jpeg, png, jpg, gif | max: 1024 | dimensions:min_width=256,min_height=256',
'first' => 'boolean|nullable',
];
}

@pacino01
Copy link
Author

pacino01 commented Dec 2, 2023

Sounds like a permission issue with the storage/public folder double check you got the permissions correct https://github.com/eckmarcommunity/eckmar/blob/master/INSTALLATION.md#permissions

That is correct. Just execute the permissions again as a root user. It must be a PNG File.

@pacino01
Copy link
Author

pacino01 commented Dec 6, 2023

but i want to be able to upload other picture formats like jpg and gif. I have tried to modify the code here like this but still not working

public function rules() { return [ 'picture' => 'required|image| mimes:jpeg, png, jpg, gif | max: 1024 | dimensions:min_width=256,min_height=256', 'first' => 'boolean|nullable', ]; }

Did you resolved your issue? what was your solution to extend the picture uploading?

@Gralien
Copy link
Collaborator

Gralien commented Dec 6, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants