Skip to content

Instantly share code, notes, and snippets.

M Hazwan hazxone

  • Datafyt
  • Malaysia
Block or report user

Report or block hazxone

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hazxone
hazxone / upload.py
Created Dec 7, 2018
Flask Simple Upload File
View upload.py
import os
from flask import Flask, request, redirect, url_for
UPLOAD_FOLDER = ''
app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
@app.route('/', methods=['GET', 'POST'])
def upload_file():
You can’t perform that action at this time.