GithubHelp home page GithubHelp logo

Comments (20)

alextran1502 avatar alextran1502 commented on May 28, 2024 2

Hmm, so only files from the external library won't have the extension. Let me check

from immich.

etnoy avatar etnoy commented on May 28, 2024 2

I have pushed a fix. Those who are affected, please run a refresh all files job after the fix is merged

from immich.

tiltshiftfocus avatar tiltshiftfocus commented on May 28, 2024 2

For those experienced with database queries, if you are still encountering issues with the latest update even after refreshing the files, you can use this query to update the assets table with the required file extension:

UPDATE assets SET "originalFileName" = CONCAT("originalFileName",SUBSTRING("originalPath" FROM '\..*')) WHERE "originalFileName" NOT LIKE '%.%';

Please make a backup to assets table before doing the above query.
After the query, pull to refresh twice on the mobile app for the timeline to rebuild to see the changes.

from immich.

alextran1502 avatar alextran1502 commented on May 28, 2024

Can you share the photos that cannot be downloaded, so that we can troubleshoot?

from immich.

panoskpv avatar panoskpv commented on May 28, 2024

I do not think it is related to the photos because this happened with photos taken from two different phones at the same period. Older photos taken with same phones and previously uploaded have no issues.

from immich.

alextran1502 avatar alextran1502 commented on May 28, 2024

Hello, just to aid in troubleshooting, having the trouble asset will help us a lot better

from immich.

panoskpv avatar panoskpv commented on May 28, 2024

IMG_20240317_104543
This is an example of photo with this issue. Also when i try to share these photos through the app the file name in the app selection pop up does notinclude extension.

from immich.

alextran1502 avatar alextran1502 commented on May 28, 2024

Can you help zip the file up? When I tried to open the image, GitHub doesn't let me

from immich.

tiltshiftfocus avatar tiltshiftfocus commented on May 28, 2024

I would like to add that I am having this issue as well on both iOS and Android.
On iOS, sharing a photo results in no extension while on Android, I get a .deploy extension.

An analysis from mine on the database shows that in the assets table, data in originalFileName column are missing the extensions and this seems to happen from version 1.98 onwards.

from immich.

alextran1502 avatar alextran1502 commented on May 28, 2024

@tiltshiftfocus Thank you for the data point. So the file itself doesn't have an extension, and they are in the immich's database?

from immich.

tiltshiftfocus avatar tiltshiftfocus commented on May 28, 2024

@alextran1502 The file itself has extension as updated from external library. They include JPG, HEIC, MOV, etc as seen below under originalPath:
image

But the extensions are missing in the originalFileName column:
image

I have checked on older entries before 9 March, and the extensions are there:
image

This issue should have some relation to #7781 .

from immich.

alytidae avatar alytidae commented on May 28, 2024

Hi! I just started using immich today as an application to view my photos. I followed this guide (https://immich.app/docs/features/libraries /) to connect external libraries. But I have the same problem as you. If I upload a photo via the immich web version, then everything works fine for me and the photo is displayed correctly, but if I connect an external library, I can see the files, but they are all gray (there is no image on them). I can see the information about the file and all files from the external library do not have an extension. I think that's why immich can't display them.

from immich.

tiltshiftfocus avatar tiltshiftfocus commented on May 28, 2024

I have pushed a fix. Those who are affected, please run a refresh all files job after the fix is merged

I just tried in the newest version with this fix. Performing refresh all files didn't fix the extensions. Did I miss anything?

from immich.

panoskpv avatar panoskpv commented on May 28, 2024

I still have the same problem after refreshing. I run all stack using docker. When i connect to the database and run above command i get "relation assets does not exist". Any ideas?

from immich.

etnoy avatar etnoy commented on May 28, 2024

My bad, even a force refresh does not re-read the filename, only timestamps.

from immich.

panoskpv avatar panoskpv commented on May 28, 2024

I still have the same problem after refreshing. I run all stack using docker. When i connect to the database and run above command i get "relation assets does not exist". Any ideas?

After connecting to the database it worked. I am noob in databases. Thank you for the solution.

from immich.

tiltshiftfocus avatar tiltshiftfocus commented on May 28, 2024

My bad, even a force refresh does not re-read the filename, only timestamps.

In the very least, future assets are now updated correctly 👍🏻.

from immich.

susovit avatar susovit commented on May 28, 2024

I did Install the latest version and did force refresh all external library. However the new photos are still showing up without extension and also cannot download via mobile app. We can see the downloaded file from the web app is ok. But mobile app still fails to download. Also info shows no file extension.
Screenshot_20240325-084818
Download From web is ok.

Screenshot_20240325-084709
Download error occurs from app.

Screenshot_20240325-084728
File info (no extension)

Screenshot_20240325-084717
File name while sharing from app.

from immich.

etnoy avatar etnoy commented on May 28, 2024

Yes, it appears that the file extension is not reloaded even on force refresh. Sorry! I'll reopen it until we've fixed it.

from immich.

etnoy avatar etnoy commented on May 28, 2024

This is now solved in the latest version. Rescan the library and the file name will be automatically be corrected.

Please verify that this works for you, I'll close this bug in the meantime

from immich.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.