Skip to content

kaushalvivek/s3-upload-portal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S3 Image Upload Portal

version-v1.0.0 framework-flask

ui

Contents

Introduction

This project is a monolithic Flask web-portal and micro-service which can be used to quickly setup a password-protected image upload portal for any S3 compatible storage service. I built this project as an intuitive upload portal for crowd-aggregated image uploads to an S3 instance.

Setup

  1. Set up repository and environment.
# clone this repository
git clone [email protected]:kaushalvivek/s3-upload-portal.git

# setup and use local python environment
cd s3-upload-portal
pip3 -m venv env
source env/bin/activate
  1. Install required packages
# install required packages
pip3 install -r requirements.txt
  1. Create a config file settings.conf in the project root with the following fields:
[keys]
; secret key is the application secret key
secret_key = 
; password is the authentication for the upload portal
password = 

[aws]
; AWS/S3 compatible credentials need to be generated
access_key_id = 
secret_key = 
bucket_name = 
region = 

[files]
; feature unavailable in v1.0.0
log_file = 

[settings]
; session type is the flask session type -- typically `filesystem`
session_type = 
  1. Start the server
python3 app.py

Usage

Once the application is setup, go the the hostname:port URL, provide the authentication password and start uploading your image file to S3 easily.

success

Contributing

Create issues for suggestions, bugs, feature requests and feel free to extend the project.

License

MIT License.

Author

@kaushalvivek