RichTextFileService
Service to store file assosicated to a rich text (note, note template)
Files are stored in the 'note' directory in the data directory For each object (note, note template), a directory (from id) is created to store the files
Path example : data_dir/note/note/{note_id}/filename
The object type is a plain str (not a :class:RichTextObjectType) so that other
bricks can scope their own rich text files without extending the enum: gws_project
stores the images of a project document under the project_document object type.
:class:RichTextObjectType inherits str, so its members can still be passed
directly.
:return: [description] :rtype: [type]
strstrstrstrstrstrstrstrstrstrstrstrstrstrstrCallViewResultDTOReturn the directory storing the files of an object.
strstrstrReturn the path of a file of an object, checking that it stays inside the object dir.
strstrstrstrstrstrstrstrstrstrCallViewResultDTOstrMethod to save the image of a note to the file system
strstrImagestrRichTextUploadImageResultDTOstrstrUploadFileRichTextUploadFileResultDTOstrstrUploadFileRichTextUploadImageResultDTOstrstrAnystrstrRichTextUploadFileResultDTO