Skip to content

Upload "post attachments" in sync-post task #86

@fennifith

Description

@fennifith

When a post is synced to hoof, any adjacent files (images, pdfs, powerpoints, and subfolders) should also be uploaded to S3 and tagged with the post slug.

  • These should be tracked in a new post_attachments table.
    • Each attachment should have an "attachment_name" (the original file name) and "attachment_key" (the location it's stored at in S3).
    • If the attachment is an image, it should be minimally processed to ensure a max size (see: processProfileImage. The resulting height/width should also be stored in the attachments table.

If the asset is removed from the repo, it should also be deleted from S3.

Likewise, if the post is deleted from the repo, all of its assets should be removed from S3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    ❗ Needs Attention

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions