solidtime-io / solidtime

Modern open-source time-tracking app
https://www.solidtime.io
GNU Affero General Public License v3.0
606 stars 28 forks source link

Uploaded Image not shown after upload #128

Closed thelooter closed 1 week ago

thelooter commented 1 month ago

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

korridor commented 1 month ago

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.

gungun974 commented 1 month ago

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.

korridor commented 1 month ago

@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.

John-Bob-DIRIENZO commented 1 week ago

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