Skip to content

Commit

Permalink
renamed configuration parameter to switch off upload progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Bollini committed Sep 21, 2013
1 parent 0a45c30 commit f1120d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -229,7 +229,7 @@ protected void doDSPost(Context context, HttpServletRequest request,
} catch (FileSizeLimitExceededException e)
{
log.warn("Upload exceeded upload.max");
if (ConfigurationManager.getBooleanProperty("webui.submit.upload.ajax", true))
if (ConfigurationManager.getBooleanProperty("webui.submit.upload.progressbar", true))
{
Gson gson = new Gson();
// old browser need to see this response as html to work
Expand Down
Expand Up @@ -70,7 +70,7 @@ public FileUploadRequest(HttpServletRequest req) throws IOException, FileSizeLim

HttpSession session = req.getSession();

if (ConfigurationManager.getBooleanProperty("webui.submit.upload.ajax", true))
if (ConfigurationManager.getBooleanProperty("webui.submit.upload.progressbar", true))
{
// set file upload progress listener
FileUploadListener listener = new FileUploadListener();
Expand Down Expand Up @@ -122,7 +122,7 @@ public FileUploadRequest(HttpServletRequest req) throws IOException, FileSizeLim
}
finally
{
if (ConfigurationManager.getBooleanProperty("webui.submit.upload.ajax", true))
if (ConfigurationManager.getBooleanProperty("webui.submit.upload.progressbar", true))
{
session.removeAttribute(FILE_UPLOAD_LISTNER);
}
Expand Down

0 comments on commit f1120d7

Please sign in to comment.