9

Add ActiveStorage::Blob.compose by gmcgibbon · Pull Request #41544 · rails/rails...

 2 years ago
source link: https://github.com/rails/rails/pull/41544
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Member

gmcgibbon commented on Feb 24

edited

Summary

Retry of #37314

I'd like to be able to use GCS' compose feature within Active Storage. Essentially, it allows you to combine multiple files together. This is particularly useful when handling multiple large files.

One issue I can see is that it is impossible to compute the checksum for a file that's assembled on the storage provider's end. In this implementation, composed blobs cannot be opened as they would fail integrity checks. We could make a special blob type ( eg. conposed: true) that skips checksum verification, but I'm not sure if that's a preferred approach for this use-case. What do you think?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK