Skip to content
This repository was archived by the owner on May 29, 2024. It is now read-only.

neilkuan/flask-uploadfile

Repository files navigation

flask-uploadfile

CodeFactor codecov Publish Docker License

This for easy upload file via python flask .

  • enable login page
  • uploadfile
  • downloadfile
  • docker image

you can run in docker .

also can run in local

$ git clone https://github.com/neilkuan/flask-uploadfile.git

$ cd flask-uploadfile/

$ export URL='0.0.0.0'

$ python app.py

open your browser http://localhost:8080

# default login admin/admin

Usage Docker

docker run -d -p 8080:8080 ghcr.io/neilkuan/flask-uploadfile/flask-uploadfile:latest

Usage Docker-compose

docker-compose up -d

Use curl and wget , uploadfile and downloadfile and deletefile

$ touch aa.tar

$ curl -X POST -F file=@"aa.tar" http://localhost:8080/uploadfile

$ wget http://localhost:8080/downloadfile/aa.tar

$ curl -X DELETE http://localhost:8080/deletefile/aa.tar

Note for run testing need to do first export ENV

export PASSWORD=admin

About

This for easy upload file via python flask .

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •