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.
16 Replies
Are you sure your app_url is correct?
i'm checking the folders manually but no photos are uploadedIt looks like permission
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
sorry very bad at server.. try google
give
755
to storage folderi even changed the permossion to 775 but still the same problem. the images are not uploading
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.
i'm sure i ran php artisan storage:link, and the errors from the console because images not found, because they didn't uploaded
i still have the problem, please help this is an emergency !!!
permissions I guess. There is no Filament issues if it is woking in the local env.
You should check it out with your host
Are you getting errors during upload?
no errors, just the image not uploading
Is the image on the server?
in /storage/app ?
No, when i checked the storage folder there is no image uploaded
Is there a storage/app/livewire-tmp folder?
Is the php
tmpfile()
function enabled on the server?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 ❤️