I'm using the example E965 to store attachments in disk (vs. the database) in an XAF web app
The solution wor ks well, however, I need to be able to check the file size and type and prevent upload/saving if this check fails.
The standard ways of doing this with validation rules does not work as size is set later in the save process and I'm not sure how to access and modify the AspxUploaderControl.
I used the https://search.devexpress.com/?q=web%20file%20size%20validation&f=70&m=SupportCenter search query and it returned some solutions that are still up-to-date today:
File Management > File Upload > Upload Modes
UploadControlValidationSettings > MaxFileSize
How to filter allowed file types for FileData properties in ASP.NET apps (an alternative to FileTypeFilterAttribute)
Please let me know how they work for you. Thanks.
How to: Access the ASPxImagePropertyEditor controls in View and Edit modes - the same approach can be used for image property editors.