discourse/lib/file_store
Jarek Radosz 64ce12a758
FIX: `OptimizedImage#filesize` (#10095)
`OptimizedImage#filesize` calls `Discourse.store.download` with an OptimizedImage as an argument. It would in turn attempt to call `#original_filename` and `#secure?` on that object. Both would fail as these methods do not exist on OptimizedImage, only on Upload. We didn't know about these issues because:
1. `#calculate_filesize` is not called often, because the filesize is saved on OptimizedImage creation, so it's used mostly for manual filesize recalculation
2. we were using `rescue nil` which swallows all errors
2020-07-06 17:01:29 +02:00
..
base_store.rb FIX: `OptimizedImage#filesize` (#10095) 2020-07-06 17:01:29 +02:00
local_store.rb REFACTOR: Restoring of backups and migration of uploads to S3 2020-01-14 11:41:35 +01:00
s3_store.rb FIX: Increase time of DOWNLOAD_URL_EXPIRES_AFTER_SECONDS to 5 minutes (#10160) 2020-07-03 13:42:36 +10:00
to_s3_migration.rb FIX: Use ActionDispatch::Http::ContentDisposition for uploads content-disposition (#10108) 2020-06-23 17:10:56 +10:00