Skip to content

Commit 73e7548

Browse files
committed
fix issue with iiif_print and s3 backed valkyrie file storage
1 parent 9c4783a commit 73e7548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/iiif_print/split_pdfs/child_work_creation_from_pdf_service.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def self.pdf_paths(file:)
6363

6464
if file.class < Valkyrie::Resource
6565
# assuming that if one PDF is uploaded to a Valkyrie resource then all of them should be
66-
paths = [Hyrax.storage_adapter.file_path(file.file_identifier)]
66+
paths = [file.file.disk_path.to_s]
6767
pdfs_only_for(paths)
6868
else
6969
upload_ids = filter_file_ids(file.id.to_s)

0 commit comments

Comments
 (0)