Skip to content

Instantly share code, notes, and snippets.

View lukelittle's full-sized avatar
💭
| (• ◡•)|

Lucas Little lukelittle

💭
| (• ◡•)|
View GitHub Profile
import os
import logging
import json
from datetime import datetime
from flask import Flask, request, jsonify
import requests
from dotenv import load_dotenv
# Load environment variables
load_dotenv()
@lukelittle
lukelittle / FileUploader.php
Created July 5, 2013 17:41
See changes to the getSize() function in FileUploader.php addressing content length problem in PrestaShop version 1.5.4.1.
<?php
/*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php