Skip to content

Commit

Permalink
files: update for retriveing files bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
0einstein0 authored and slint committed Aug 8, 2024
1 parent 8be0bb4 commit 38af46f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio_records_resources/services/files/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def init_file(self, record, file_data):

def set_file_content(self, record, file, file_key, stream, content_length):
"""Set file content."""
bucket = record.bucket
bucket = record.files.bucket

size_limit = bucket.size_limit
if content_length and size_limit and content_length > size_limit:
Expand Down

0 comments on commit 38af46f

Please sign in to comment.