Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Version: 1.x.x
storage = Storage()
storage.init_app(app)

@app.route("/upload", methods=["POST", "GET"]):
@app.route("/upload", methods=["POST", "GET"])
def upload():
if request.method == "POST":
file = request.files.get("file")
Expand All @@ -53,7 +53,7 @@ Version: 1.x.x


# A download endpoint, to download the file
@app.route("/download/<path:object_name>"):
@app.route("/download/<path:object_name>")
def download(object_name):
my_object = storage.get(object_name)
if my_object:
Expand Down Expand Up @@ -246,7 +246,7 @@ It will also setup a server endpoint when STORAGE_PROVIDER == LOCAL
storage = Storage()
storage.init_app(app)

@app.route("/upload", methods=["POST", "GET"]):
@app.route("/upload", methods=["POST", "GET"])
def upload():
if request.method == "POST":
file = request.files.get("file")
Expand Down Expand Up @@ -532,7 +532,7 @@ Return a URL that triggers the browser download of the file. On cloud providers

# or with flask

@app.route("/download/<path:object_name>"):
@app.route("/download/<path:object_name>")
def download(object_name):
my_object = storage.get(object_name)
if my_object:
Expand Down