F
Filament4mo ago
Hdev

Image not uploading after deployment

the image is not uploading after i deploy the project, in my local its working . i changed the APP_URL i linked the storage the the default image is working. but when i upload new image it's not uploading, i'm checking the folders manually but no photos are uploaded.
No description
No description
16 Replies
Vp
Vp4mo ago
Are you sure your app_url is correct?
i'm checking the folders manually but no photos are uploaded
It looks like permission
Hdev
Hdev4mo ago
yes i'm sure, its my subdomain, i also tried to add photo manually to the folder and it works, the path to folders is correct but the probleme is with uploading how can i fix this permission problem please, i'm using Hostinger
Vp
Vp4mo ago
sorry very bad at server.. try google
Vp
Vp4mo ago
give 755 to storage folder
Hdev
Hdev4mo ago
i even changed the permossion to 775 but still the same problem. the images are not uploading
No description
toeknee
toeknee4mo ago
I suspect you need to run: php artisan storage:link Failing that, what is your console saying as there are 4 errors in your screenshot.
Hdev
Hdev4mo ago
i'm sure i ran php artisan storage:link, and the errors from the console because images not found, because they didn't uploaded
No description
Hdev
Hdev4mo ago
i still have the problem, please help this is an emergency !!!
LeandroFerreira
LeandroFerreira4mo ago
permissions I guess. There is no Filament issues if it is woking in the local env. You should check it out with your host
vblinden
vblinden4mo ago
Are you getting errors during upload?
Hdev
Hdev4mo ago
no errors, just the image not uploading
vblinden
vblinden4mo ago
Is the image on the server? in /storage/app ?
Hdev
Hdev4mo ago
No, when i checked the storage folder there is no image uploaded
LeandroFerreira
LeandroFerreira4mo ago
Is there a storage/app/livewire-tmp folder? Is the php tmpfile() function enabled on the server?
Hdev
Hdev4mo ago
the problem is solved, i removed all files and i uploaded everything again then i gived 775 permission to storage folder then i linked it using artisan storage:link, thank you very much for your support ❤️