Python Flask application to receive and save images over POST requests.
This repository has been archived on 2021-01-14. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2020-09-06 15:24:20 -05:00
.gitignore Remove uploadkeys encryption features 2020-09-03 21:44:58 -05:00
configtest.py Add newline after block comments at beginning 2020-09-06 15:24:20 -05:00
functions.py.default Add newline after block comments at beginning 2020-09-06 15:24:20 -05:00
imgupload.py Add newline after block comments at beginning 2020-09-06 15:24:20 -05:00
keyctl.py Deduplicate code in keyctl.py and add comments 2020-09-04 19:44:46 -05:00
LICENSE Initial commit 2020-08-31 16:43:58 -05:00
README.md Added FAQ and links to sections in README.md 2020-09-06 12:43:44 -05:00
requirements.txt Remove uploadkeys encryption features 2020-09-03 21:44:58 -05:00
settings.py.default Add proper shebangs and block comments 2020-09-04 10:47:20 -05:00

imgupload

CodeFactor Grade GitHub repo size GitHub All Releases GitHub issues GitHub closed issues GitHub

What is imgupload?

imgupload is a Flask + uWSGI application to serve as an all-purpose image/file uploader over POST requests.


FAQ

Where can I send bug reports and feature requests?

You can create an issue here.

How do I use this program?

See Installation

I want to make a pull request. Where should I do that?

First, fork this repository. If you don't have an account on my Gitea site yet, you can either create one, or sign in using your GitHub account. Commit your changes to your fork, and then create a pull request.


Installation

  1. Clone the repository: git clone https://gitea.bbaovanc.com/bbaovanc/imgupload.git
  2. Enter the imgupload directory: cd imgupload
  3. Create a virtualenv: python3 -m venv env
  4. Enter the virtualenv: source env/bin/activate
  5. Install dependencies: python3 -m pip install -r requirements.txt
  6. Run the Flask app

Running the Flask app

Using uWSGI

https://uwsgi-docs.readthedocs.io/en/latest/Configuration.html

Instructions specific to imgupload are coming soon

Using Flask development server

$ source env/bin/activate  # if you haven't already entered the virtualenv
$ export FLASK_APP=imgupload.py
$ flask run

License

imgupload is licensed under the GPLv3 license. For more information, please refer to LICENSE