discourse/lib/file_store
Martin Brennan 99ec8eb6df
FIX: Capture S3 metadata when calling create_multipart (#14161)
The generate_presigned_put endpoint for direct external uploads
(such as the one for the uppy-image-uploader) records allowed
S3 metadata values on the uploaded object. We use this to store
the sha1-checksum generated by the UppyChecksum plugin, for later
comparison in ExternalUploadManager.

However, we were not doing this for the create_multipart endpoint,
so the checksum was never captured and compared correctly.

Also includes a fix to make sure UppyChecksum is the last preprocessor to run.
It is important that the UppyChecksum preprocessor is the last one to
be added; the preprocessors are run in order and since other preprocessors
may modify the file (e.g. the UppyMediaOptimization one), we need to
checksum once we are sure the file data has "settled".
2021-08-27 09:50:23 +10:00
..
base_store.rb FIX: Restructure temp/ folders for direct S3 uploads (#14137) 2021-08-25 09:22:36 +10:00
local_store.rb FEATURE: Use path from existing URL of uploads and optimized images (#13177) 2021-05-27 17:42:25 +02:00
s3_store.rb FIX: Capture S3 metadata when calling create_multipart (#14161) 2021-08-27 09:50:23 +10:00
to_s3_migration.rb FEATURE: Upload to s3 in parallel to speed up backup restores (#13391) 2021-06-16 10:34:39 +01:00