Skip to content

Use S3 storage to save files sent to the bot. #47

Description

@mykolasolodukha

What?

  • Connect S3 (possibly Digital Ocean Spaces) using e.g. boto3 or rather aioboto3.
  • Save images sent to bot to S3. Possibly using a Middleware.
  • [Optional but preferred] Save the images' UUID4s (or similar) to the Database so that in the database we have a full local copy of an ad.

Why?

  • To have a list of all the images sent to the bot, in case someone is trying to abuse it, we can track the bad actor.
  • To possibly allow for a web-interface and/or different mediums, including different mediums in terms or payments.

Anything else?

I would argue for using async version of boto3 - aioboto3 (or analogs) because uploading an image to S3 is a heavy I/O-bound operation and having it be done async is a great plus.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions