Save filedocuments on my computer automatically

0
I run out of space, because large filedocuments are saved in my Mendix environment. I like to create a microflow that automatically selects filedocuments > 1Mb, saves them on my computer and deletes them from the app. Is there a way to do this without first opening them manually?
asked
1 answers
0

System.FileDocument Generalization Entity has an attribute "size". You can use this attribute to check the size of the uploaded file and decided where to save the file based on that.
If the size is more than 1 MB(I think it will check in Kb), add the flow to save the file on local drive. Once done, don't commit the file in the domain model, and it will not save it in Mendix DB.
I am not sure how will you save the file on local computer. You may have to save the document on AWS S3 bucket and mount local drive on your computer to that S3 bucket using some folder mounting software. There are widgets to connect to AWS S3 bucket and save files there.System.FileDocument Generalization Entity has an attribute "size". You can use this attribute to check the size of the uploaded file and decided where to save the file based on that.
If the size is more than 1 MB(I think it will check in Kb), add the flow to save the file on local drive. Once done, don't commit the file in the domain model, and it will not save it in Mendix DB.
I am not sure how will you save the file on local computer. You may have to save the document on AWS S3 bucket and mount local drive on your computer to that S3 bucket using some folder mounting software. There are widgets to connect to AWS S3 bucket and save files there.

answered