remove direct upload

This commit is contained in:
Pete Matsyburka
2024-04-06 15:00:30 +03:00
parent c8d3b1bace
commit cab9672d25
23 changed files with 77 additions and 420 deletions
+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