Skip to content

chore(closes OPEN-8832): optionally upload data from external URLs to…#591

Merged
gustavocidornelas merged 1 commit intomainfrom
cid/url-upload
Feb 25, 2026
Merged

chore(closes OPEN-8832): optionally upload data from external URLs to…#591
gustavocidornelas merged 1 commit intomainfrom
cid/url-upload

Conversation

@gustavocidornelas
Copy link
Contributor

… our storage

Pull Request

Summary

Adds a new configuration param (bool): url_upload_enabled. When set to True, attachments that are referencing external URLs are downloaded and then re-uploaded to the Openlayer backend.

This is an opt-in feature that is important to assert attachments are persistent on Openlayer even when external URLs remove them.

Changes

  • New config + piping it through to handle it in the attachment uploader class.

Context

OPEN-8832: Optionally upload data from external URLs to our storage

Testing

  • Manual testing

Copy link

@matheusportela matheusportela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. At some point, we should refactor the upload_attachment method because it is massive and has too many responsibilities. That's not a blocker, though, and shouldn't delay this PR.

@gustavocidornelas gustavocidornelas merged commit c5059a7 into main Feb 25, 2026
5 checks passed
@gustavocidornelas gustavocidornelas deleted the cid/url-upload branch February 25, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants