[MODELS]
generic_attachment = 'plugs.generic_attachments.models.Generic_Attachment'

[EXPOSES]
generic_upload_file = '/generic_attachments/upload', 'plugs.generic_attachments.views.uploadfile'
generic_delete_file = '/generic_attachments/delete/<f_id>', 'plugs.generic_attachments.views.deletefile'
generic_download_file = '/generic_attachments/download/<f_id>', 'plugs.generic_attachments.views.downloadfile'
generic_upload_img = '/generic_attachments/upload_img', 'plugs.generic_attachments.views.postimage'

[Generic_Attachment_Save_Dirs]
#format tablename = "dir"

[Generic_Attachment]
dir_depth = 2

[Generic_Attachment_FileServing]
TO_PATH = './uploads'
BUFFER_SIZE = 4096
FILENAME_CONVERTER =
BACKEND =
X_SENDFILE = None
X_HEADER_NAME = ''
X_FILE_PREFIX = '/files'
THUMBNAIL_PROCESS = True
IMAGE_THUMBNAIL_SIZE = (40, 30)

[Generic_Attachment_Download_Checking]
#format tablename = 'check.function'
#check function should be defined as:
# def f(relative_obj, user, action:download, delete)