File processing

Introducing the asset of type file creation. This involves making a
node collection entry of type asset, as well as a file collection
entry, plus all the needed variations if such file is an image or a
video. Further, depending on the storage backend (pillar or other) we
synchronise the files there using rsync. Currently this functionality
is available only via pillar-web, since a web interface is needed to
upload the file in a storage folder, which is shared between the two
applications.
This commit is contained in:
2015-09-24 15:45:57 +02:00
parent 71dd30fa75
commit c2e0ae4002
11 changed files with 462 additions and 18 deletions

View File

@@ -9,7 +9,7 @@ RESOURCE_METHODS = ['GET', 'POST', 'DELETE']
# individual items (defaults to read-only item access).
ITEM_METHODS = ['GET', 'PUT', 'DELETE', 'PATCH']
PAGINATION_LIMIT = 999
PAGINATION_LIMIT = 25
# To be implemented on Eve 0.6
# RETURN_MEDIA_AS_URL = True
@@ -281,7 +281,7 @@ files_schema = {
'format': { # human readable format, like mp4, HLS, webm, mov
'type': 'string'
},
'width': { # valid for images and video contentType
'width': { # valid for images and video content_type
'type': 'integer'
},
'height': {
@@ -310,7 +310,7 @@ files_schema = {
},
'path': {
'type': 'string',
'required': True,
#'required': True,
'unique': True,
},
'previews': { # Deprecated (see comments above)