This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adapted from https://github.com/doobeh/Flask-S3-Uploader | |
# Improved to store the data on the local server and process | |
# the upload via a celery task queue | |
from uuid import uuid4 | |
import boto | |
import os.path | |
from flask import current_app as app | |
from werkzeug.utils import secure_filename | |
from .. import celery |