I wonder if it wouldn't be a good idea to have a storage abstraction that will either use the filesystem or S3 (or another storage), depending on the configuration. That way, the code doesn't need to care where the data is actually stored.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.