code: protected void updateUploadTarget(String uploadTarget) {
  
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(uploadTarget)) {
              m_uploadTarget = m_configuration.getUploadFolder();
          } else {
              m_uploadTarget = uploadTarget;
          }
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_uploadTarget)) {
              // disable the upload button as no target folder is available
              m_uploadButton.disable(
                  org.opencms.ade.upload.client.Messages.get().key(
                      org.opencms.ade.upload.client.Messages.GUI_UPLOAD_BUTTON_NO_TARGET_0));
          } else {
              // make sure the upload button is available
              m_uploadButton.enable();
              ((CmsDialogUploadButtonHandler)m_uploadButton.getButtonHandler()).setTargetFolder(m_uploadTarget);
              m_uploadButton.setTitle(Messages.get().key(Messages.GUI_GALLERY_UPLOAD_TITLE_1, m_uploadTarget));
          }
      }
docs: Updates the upload target folder path.<p>
  
  @param uploadTarget the upload target folder