text: from flask import Flask, render_template, flash, url_for, session, redirect
  import os
  import sys
  from flask import request
  from random import randint
  from werkzeug.utils import secure_filename
  from flask.ext.session import Session
  
  app = Flask(__name__)
  sess = Session()
  
  UPLOAD_FOLDER = 'c:/test'
  ALLOWED_EXTENSIONS = set(['zip'])
  
  app = Flask(__name__)
  app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
  
  @app.route('/', methods=['GET', 'POST'])
  def home():
      
      return render_template('index.html')
  
  def allowed_file(filename):
      return '.' in filename and \
          filename.rsplit('.', 1)[1].lower() in ALLOWED_EXTENSIONS
  
  @app.route('/upload_file', methods=['POST'])
  def upload_file():
      
      # check if the post request has the file part
      if 'file' not in request.files:        
          result = {
              'result' : 0,    
              'error' : 'file not available',
          }
          return render_template('result.html', result=result)
      
      file = request.files['file']
      
      # if user does not select file, browser also
      # submit an empty part without filename
      if file.filename == '':        
          result = {
              'result' : 0,    
              'error' : 'file is empty',
          }
          return render_template('result.html', result=result)
      
      if file and allowed_file(file.filename):
          filename = secure_filename(file.filename)
          file.save(os.path.join(app.config['UPLOAD_FOLDER'], filename))
          
          result = {
              'result' : 1,
              'error' : '',
          }
          return render_template('result.html', result=result)
      
      #return content
      return render_template('result.html', user=user)
  
  if __name__ == '__main__':
      host = os.environ.get('IP', '127.0.0.1')
      port = int(os.environ.get('PORT', 5000))
      
      app.secret_key = 'super secret key'
      app.config['SESSION_TYPE'] = 'filesystem'
  
      sess.init_app(app)
      
      app.run(host= host, port = port, use_reloader = False)
      
      
  '''
  Sources:
      http://www.compjour.org/lessons/flask-single-page/multiple-dynamic-routes-in-flask/
      
      https://www.learnpython.org/en/String_Formatting
      
      https://stackoverflow.com/questions/25888396/how-to-get-latitude-longitude-with-python
      
      https://github.com/googlemaps/google-maps-services-python
      
      AIzaSyCRhRz_mw_5wIGgF-I6PUy3js6dcY6zQ6Q
      
      Get Current Location:
      https://stackoverflow.com/questions/44218836/python-flask-googlemaps-get-users-current-location-latitude-and-longitude
      
      File Upload:
          http://flask.pocoo.org/docs/1.0/patterns/fileuploads/
          
      Read a zip file:
          https://stackoverflow.com/questions/19371860/python-open-file-from-zip-without-temporary-extracting-it
  '''