FeatureFuel
1

[Feature] Bulk endpoint to get file sizes for a list of asset IDs

Source: immich-app/immich#31694 · opened by @jake-bybee
I have searched the existing feature requests, both open and closed, to make sure this is not a duplicate request. • Yes The feature I'd like an endpoint that accepts a list of asset IDs and returns the file size of each individual asset. Use case I'm writing a client that bulk downloads assets with several concurrent requests. To plan batches and show accurate progress, I need to know how big each file is before downloading it. Current situation • POST /download/info returns sizes per archive, not per asset, so I can't see how large each individual file is. • GET /assets/{id} includes exifInfo.fileSizeInByte, but that means one request per asset. For a large library that is thousands of round trips just to read a number. Proposal A single request that takes many IDs and returns ID and size pairs, for example: Request: { "assetIds": ["id1", "id2", ...] } Response: [ { "id": "id1", &…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests