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
from django.core.files.uploadhandler import TemporaryFileUploadHandler | |
from django.core.files.base import File | |
from dropbox.client import DropboxClient | |
from dropbox.session import DropboxSession | |
from django.conf import settings | |
import os | |
class DropboxFileUploadHandler(TemporaryFileUploadHandler): | |
def __init__(self, *args, **kwargs): | |
super(DropboxFileUploadHandler, self).__init__(*args, **kwargs) |