From 07ccb8a1b77893d30cf655f241f08de5cf443484 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Tue, 7 Feb 2017 20:59:48 +0200 Subject: [PATCH] upload services: MAX_FILE_SIZE generalized and increased to 1GB --- motioneye/uploadservices.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/motioneye/uploadservices.py b/motioneye/uploadservices.py index 9246cb0..c389491 100644 --- a/motioneye/uploadservices.py +++ b/motioneye/uploadservices.py @@ -32,6 +32,8 @@ _services = None class UploadService(object): + MAX_FILE_SIZE = 1024 * 1024 * 1024 # 1GB + NAME = 'base' def __init__(self, camera_id, **kwargs): @@ -144,7 +146,6 @@ class GoogleDrive(UploadService): CREATE_FOLDER_URL = 'https://www.googleapis.com/drive/v2/files' BOUNDARY = 'motioneye_multipart_boundary' - MAX_FILE_SIZE = 128 * 1024 * 1024 # 128 MB FOLDER_ID_LIFE_TIME = 300 # 5 minutes @@ -439,8 +440,6 @@ class Dropbox(UploadService): LIST_FOLDER_URL = 'https://api.dropboxapi.com/2/files/list_folder' UPLOAD_URL = 'https://content.dropboxapi.com/2/files/upload' - MAX_FILE_SIZE = 128 * 1024 * 1024 # 128 MB - def __init__(self, camera_id, location=None, authorization_key=None, credentials=None, **kwargs): self._location = location self._authorization_key = authorization_key -- 2.39.5