This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |