Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks
mykolasolodukha opened this issue Oct 28, 2023 · 1 comment
Open
3 tasks

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

mykolasolodukha opened this issue Oct 28, 2023 · 1 comment
Labels
enhancement New feature or request hacktoberfest

Comments

@mykolasolodukha
Copy link
Collaborator

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.

@mykolasolodukha mykolasolodukha added enhancement New feature or request hacktoberfest labels Oct 28, 2023
@avenortoz
Copy link
Contributor

If it is not urgent, I will be glad to take this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants