solidtime icon indicating copy to clipboard operation
solidtime copied to clipboard

Uploaded Image not shown after upload

Open thelooter opened this issue 1 year ago • 3 comments

I tried to upload a profile Picture to my account, but it just shows this image image

Immediately after uploading, it shows the image correctly in the settings page, after that it fails image

This is the uploaded image https://avatars.githubusercontent.com/u/24987877?v=4

thelooter avatar Jul 10 '24 17:07 thelooter

Could you please provide me with additional information about your file storage setup? (https://docs.solidtime.io/self-hosting/configuration#file-storage) Which driver are you using?

Could you also show me where the application tries to load the image from? You can probably see that in the network console. If this is sensitive information, you can send me this in a private message on Discord.

korridor avatar Jul 15 '24 10:07 korridor

I personally occurred the same issue but I remember that by default laravel don't create the public link of storage.

I did php artisan storage:link and now octane can access the public directory.

Edit: I'm self hosting with the local filesystem with docker.

gungun974 avatar Jul 19 '24 09:07 gungun974

@gungun974 Thanks for your message! You are right, if you want to use the local storage provider, you need to run php artisan storage:link. This was part of the old Docker image, but I forgot to add this to the new one as well.

I just fixed that in the main branch in the following commit: https://github.com/solidtime-io/solidtime/commit/ba07616111f56961f3d448e8572c867ac50e879c

This will be part of the next release.

@thelooter Until then, you can run php artisan storage:link manually. Please let me know if this solves your issue.

korridor avatar Jul 24 '24 11:07 korridor

Hello @korridor, I had the very same issue and running php artisan storage:link solved the issue. Thanks a lot

John-Bob-DIRIENZO avatar Aug 27 '24 20:08 John-Bob-DIRIENZO