grails - Possible to configure Weceem to upload content to database or S3 instead of local server file system? -


i'd give our business team ability edit pages , content via cms solution in our grails application, , weceem plugin seems choice.

the potential showstopper see is uses local server file system uploaded content, no in horizontally scaled cloud environment ours (we run in aws).

question is, possible tell weceem use database store binary/uploaded content, or (better yet) override content upload handlers use amazon s3 instead of file system (we have code uploads s3 in our main app, question how hook weceem)

i assume in such situation possible create own content type (domain class) in app stores binary uploaded content. class should subclass of org.weceem.content.wcmcontent class. in weceem can check small example storing such content, see org.weceem.files.wcmcontentfiledb class also, here there information how extend plugin custom content type. hope information can helpful.

as uploading: in weceem use ckeditor plugin uploading additional files/resources, org.weceem.files.wcmcontentfile used, stores files on file system, files uploaded using paths provided org.weceem.services.wcmcontentrepositoryservice.getuploadpath(...) method. path calculated configuration property provided in application config (e.g. 'weceem.upload.dir'). not sure can hook here.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -