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