Changes to logo uploading and deleting

This commit is contained in:
lmann99 2017-01-02 12:16:07 -05:00
parent 4cef4f2cc8
commit 4921df1ba9

View file

@ -1577,7 +1577,7 @@ public class ConfigurationController extends GenericForwardComposer {
.getCurrentWebApplicationContext()
.getResource("/")
.getFile()
.getPath() + "\\" + media.getName());
.getPath() + "/" + media.getName());
OutputStream outputStream = new FileOutputStream(fileToSave);
out = new BufferedOutputStream(outputStream);
@ -1628,9 +1628,9 @@ public class ConfigurationController extends GenericForwardComposer {
if ( !"".equals(companyLogoURL.getValue()) ) {
((org.zkoss.zul.Image) configurationWindow.getFellow(LOGO_PREVIEW_COMPONENT)).setSrc("");
findAndRemoveLogoFromTarget(companyLogoURL.getValue());
Util.logo = null;
}
Util.logo = null;
companyLogoURL.setValue("");
configurationModel.setCompanyLogoURL("");
}