Skip to content

Replace/overwrite ebook functionality #7

Description

@monapdx

Goal:

Allow authors to replace an existing ebook instead of stacking multiple uploads.

What to do:

  1. Before uploading a new ebook:
  2. fetch existing ebook
  3. delete old file from storage
  4. delete or update old DB row
  5. Then upload new file normally

Key areas:

  1. uploadEbook() in ebookService.js

Notes:

Prevents multiple ebook rows per campaign

Keeps storage clean

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions