add an implementation that allows client photos to be persisted/stored on filesystem that is easy to extend for different types of environments e.g. local filesystem for simple installation, or storage on S3 if on Amazon etc.
A number of organisations request this: admcambodia, vastech, etc
see or for historic reference
1. I think we can do that but I am not actually doing any image processing while storing the images to resize it. I will fix the width and height will adjust as per ratio. This should take care of the big size image issue.
2. User uploads the image and validation fails for image, image will be dropped and user can continue without the image. If he want the right image to be uploaded then he would have to choose the image again once the validation fails.
2. Ok, you're right, this validation is enough.
Integrated in
head-g-release-secondary #160
: size of the image is fixed
Udai Gupta :
Files :
application/src/main/resources/META-INF/resources/pages/application/client/jsp/preview_EditClientPersonalInfo.jsp
application/src/main/resources/META-INF/resources/pages/application/client/jsp/viewClientDetails.jsp
application/src/main/resources/META-INF/resources/pages/application/client/jsp/edit_ClientPersonalInfo.jsp
application/src/main/java/org/mifos/customers/client/struts/actionforms/ClientCustActionForm.java
application/src/main/resources/META-INF/resources/pages/application/client/jsp/customerPicture.jsp
application/src/main/resources/META-INF/resources/pages/application/client/jsp/preview_ClientDetails.jsp
Integrated in
head-master-secondary #512
: Ability to add/view and edit client photo
: Implemented original ratio and validation of Image
: Delete link
: size of the image is fixed
Udai Gupta :
Files :
appdomain/src/main/resources/org/mifos/framework/util/resources/hibernate.cfg.xml
appdomain/src/main/java/org/mifos/customers/client/persistence/LegacyClientDao.java
appdomain/src/main/java/org/mifos/framework/image/domain/ImageInfo.java
application/src/main/resources/META-INF/resources/pages/application/client/jsp/create_ClientPersonalInfo.jsp
application/src/test/java/org/mifos/config/ConfigurationManagerTest.java
appdomain/src/main/java/org/mifos/customers/persistence/CustomerDaoHibernate.java
application/src/main/resources/META-INF/resources/pages/application/client/jsp/viewClientDetails.jsp
application/src/main/java/org/mifos/customers/client/struts/action/ClientCustAction.java
appdomain/src/main/resources/org/mifos/customers/business/CustomerBO.hbm.xml
application/src/test/java/org/mifos/framework/image/service/ClientPhotoServiceIntegrationTest.java
serviceInterfaces/src/main/java/org/mifos/application/servicefacade/ClientServiceFacade.java
application/src/main/resources/META-INF/resources/pages/application/client/jsp/edit_ClientPersonalInfo.jsp
serviceInterfaces/src/main/java/org/mifos/dto/screen/ClientDisplayDto.java
appdomain/src/main/java/org/mifos/framework/image/domain/ClientPhoto.java
application/src/main/resources/META-INF/resources/pages/application/client/jsp/preview_ClientDetails.jsp
application/src/main/resources/org/mifos/config/localizedResources/ClientUIResources.properties
appdomain/src/main/java/org/mifos/customers/client/business/ClientBO.java
appdomain/src/main/resources/org/mifos/config/resources/applicationConfiguration.default.properties
appdomain/src/main/java/org/mifos/framework/image/service/ClientPhotoServiceFileSystem.java
application/src/test/java/org/mifos/framework/util/helpers/TestObjectFactory.java
appdomain/src/main/resources/org/mifos/image/syserror.png
application/src/main/resources/META-INF/resources/pages/application/client/jsp/preview_EditClientPersonalInfo.jsp
appdomain/src/main/java/org/mifos/framework/image/service/ClientPhotoService.java
appdomain/src/main/java/org/mifos/customers/client/business/CustomerPictureEntity.java
application/src/test/java/org/mifos/customers/ClientUpdateTest.java
appdomain/src/main/java/org/mifos/application/servicefacade/ClientServiceFacadeWebTier.java
appdomain/src/main/java/org/mifos/framework/image/service/ImageStorageManager.java
application/src/main/java/org/mifos/framework/ApplicationInitializer.java
appdomain/src/main/java/org/mifos/customers/client/util/helpers/ClientConstants.java
appdomain/src/main/resources/org/mifos/config/resources/services.xml
application/src/main/java/org/mifos/customers/client/struts/actionforms/ClientCustActionForm.java
common/src/main/java/org/mifos/framework/util/ConfigurationLocator.java
db/src/main/resources/changesets/changelog-Release_G.xml
appdomain/src/main/resources/org/mifos/application/collectionsheet/business/CollectionSheetRetrieveAndSave.hbm.xml
appdomain/src/main/resources/org/mifos/image/nopicture.png
appdomain/src/main/java/org/mifos/customers/business/service/CustomerServiceImpl.java
serviceInterfaces/src/main/java/org/mifos/dto/screen/ClientPhotoDto.java
application/src/test/java/org/mifos/domain/builders/ClientBuilder.java
application/src/test/java/org/mifos/customers/client/business/ClientIntegrationTest.java
Udai Gupta :
Files :
application/src/main/java/org/mifos/customers/client/struts/actionforms/ClientCustActionForm.java
application/src/main/resources/org/mifos/config/localizedResources/ClientUIResources.properties
application/src/main/resources/META-INF/resources/pages/application/client/jsp/edit_ClientPersonalInfo.jsp
appdomain/src/main/java/org/mifos/customers/client/util/helpers/ClientConstants.java
application/src/main/resources/META-INF/resources/pages/application/client/jsp/viewClientDetails.jsp
application/src/main/resources/META-INF/resources/pages/application/client/jsp/preview_EditClientPersonalInfo.jsp
application/src/main/resources/META-INF/resources/pages/application/client/jsp/preview_ClientDetails.jsp
application/src/main/java/org/mifos/customers/client/struts/action/ClientCustAction.java
application/src/main/resources/META-INF/resources/pages/application/client/jsp/customerPicture.jsp
Udai Gupta :
Files :
application/src/main/resources/org/mifos/config/localizedResources/ClientUIResources.properties
application/src/main/java/org/mifos/customers/client/struts/action/ClientCustAction.java
application/src/main/resources/META-INF/resources/pages/application/client/jsp/create_ClientPersonalInfo.jsp
application/src/main/java/org/mifos/customers/client/struts/actionforms/ClientCustActionForm.java
application/src/main/resources/META-INF/resources/pages/application/client/jsp/edit_ClientPersonalInfo.jsp
Udai Gupta :
Files :
application/src/main/java/org/mifos/customers/client/struts/actionforms/ClientCustActionForm.java
application/src/main/resources/META-INF/resources/pages/application/client/jsp/preview_EditClientPersonalInfo.jsp
application/src/main/resources/META-INF/resources/pages/application/client/jsp/preview_ClientDetails.jsp
application/src/main/resources/META-INF/resources/pages/application/client/jsp/viewClientDetails.jsp
application/src/main/resources/META-INF/resources/pages/application/client/jsp/customerPicture.jsp
application/src/main/resources/META-INF/resources/pages/application/client/jsp/edit_ClientPersonalInfo.jsp
Verified on 07.10.2011
Add/view and edit photo functionality has been implemented properly.