openmeetings-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From solo...@apache.org
Subject svn commit: r1435033 - /incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/servlet/outputhandler/UploadController.java
Date Fri, 18 Jan 2013 06:03:10 GMT
Author: solomax
Date: Fri Jan 18 06:03:10 2013
New Revision: 1435033

URL: http://svn.apache.org/viewvc?rev=1435033&view=rev
Log:
[OPENMEETINGS-506] profile picture is saved with unified name to avoid any filename issues

Modified:
    incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/servlet/outputhandler/UploadController.java

Modified: incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/servlet/outputhandler/UploadController.java
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/servlet/outputhandler/UploadController.java?rev=1435033&r1=1435032&r2=1435033&view=diff
==============================================================================
--- incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/servlet/outputhandler/UploadController.java
(original)
+++ incubator/openmeetings/trunk/singlewebapp/src/org/apache/openmeetings/servlet/outputhandler/UploadController.java
Fri Jan 18 06:03:10 2013
@@ -179,19 +179,8 @@ public class UploadController extends Ab
 
     
     private void sendMessage(UploadInfo info, UploadCompleteMessage uploadCompleteMessage)
{
-    	
-//    	UploadCompleteMessage uploadCompleteMessage = new UploadCompleteMessage(
-//				usersDao.get(info.userId),
-//				"library", //message
-//				"import", //action
-//				"", //error
-//				info.filename);
-	
 		scopeApplicationAdapter.sendUploadCompletMessageByPublicSID(
 				uploadCompleteMessage, info.publicSID);
-    	
-//		scopeApplicationAdapter.sendMessageWithClientByPublicSID(hs,
-//				info.publicSID);
     }
     
 	private void uploadFile(HttpServletRequest request, boolean userProfile, Long userId, String
roomName,
@@ -226,7 +215,7 @@ public class UploadController extends Ab
 		if (userProfile) {
 			// User Profile Update
 			this.deleteUserProfileFilesStoreTemp(userId);
-
+			newFileName = "profile"; //set unified file name to avoid any problems with national characters
 			workingDir = OmFileHelper.getUploadProfilesUserDir(userId);
 		}
 		// if it is a presenation it will be copied to another



Mime
View raw message