Skip to content

Instantly share code, notes, and snippets.

View cellofellow's full-sized avatar
😀

Joshua Gardner cellofellow

😀
View GitHub Profile
{
"IAB1": "Arts & Entertainment",
"IAB1-1": "Books & Literature",
"IAB1-2": "Celebrity Fan/Gossip",
"IAB1-3": "Fine Art",
"IAB1-4": "Humor",
"IAB1-5": "Movies",
"IAB1-6": "Music",
"IAB1-7": "Television",
"IAB2": "Automotive",
@cellofellow
cellofellow / b64field.py
Last active December 16, 2015 20:29 — forked from klipstein/b64field.py
import base64
import os
import mimetypes
from django.core.files.uploadedfile import SimpleUploadedFile
from tastypie import fields
class Base64FileField(fields.FileField):
"""
A django-tastypie field for handling file-uploads through raw post data.