diff --git a/lib/iiif_print/split_pdfs/child_work_creation_from_pdf_service.rb b/lib/iiif_print/split_pdfs/child_work_creation_from_pdf_service.rb index 80c5e596..1de9166f 100644 --- a/lib/iiif_print/split_pdfs/child_work_creation_from_pdf_service.rb +++ b/lib/iiif_print/split_pdfs/child_work_creation_from_pdf_service.rb @@ -63,7 +63,7 @@ def self.pdf_paths(file:) if file.class < Valkyrie::Resource # assuming that if one PDF is uploaded to a Valkyrie resource then all of them should be - paths = [Hyrax.storage_adapter.file_path(file.file_identifier)] + paths = [file.file.disk_path.to_s] pdfs_only_for(paths) else upload_ids = filter_file_ids(file.id.to_s)