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

Upload document files to S3 #124

Merged
merged 1 commit into from
May 21, 2023
Merged

Upload document files to S3 #124

merged 1 commit into from
May 21, 2023

Conversation

Ashesh3
Copy link
Member

@Ashesh3 Ashesh3 commented May 18, 2023

Fixes #61

This PR updates the file upload functionality in Django to use Amazon S3 for storage. This change provides several benefits, including improved scalability, durability, and availability of uploaded files.

The following changes were made to implement this feature:

  • Added the boto3 library to requirements.txt for interacting with S3.
  • Configured the AWS credentials and S3 bucket name in the Django settings file.
  • Updated the file upload view to use the boto3 library to upload the file to S3.
  • Updated the file model to store the S3 object key instead of the file path.

@Ashesh3 Ashesh3 requested a review from skks1212 May 18, 2023 11:55
@skks1212 skks1212 merged commit 5323888 into master May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate Amazon S3 to store documents
2 participants