Skip to content

Instantly share code, notes, and snippets.

View jstarcher's full-sized avatar

Jordan Starcher jstarcher

  • The Starcher Organization
  • Ohio
View GitHub Profile
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.