remove direct upload

This commit is contained in:
Pete Matsyburka committed 2024-04-06 15:00:30 +03:00
1 parent c8d3b1bace
commit cab9672d25
23 files changed
+77 -420

No files matched your search

+1 -5
View File
@@ -43,11 +43,7 @@ module Templates
end
def find_or_create_blobs(params)
blobs = params[:blobs]&.map do |attrs|
ActiveStorage::Blob.find_signed(attrs[:signed_id])
end
blobs || params[:files].map do |file|
params[:files].map do |file|
data = file.read
if file.content_type == PDF_CONTENT_TYPE