CreateAnAJAXBasedFileuploadProgressbarDialog |
|
Your trail: |
Difference between
version 57
and
version 56:
At line 274 changed 5 lines. |
*FileUploadAction.java - the struts Action responsible for reciving the uploaded files and save them to disk |
*lightboxDwrUpload.js - The modified [Lightbox Gone Wild!|http://particletree.com/features/lightbox-gone-wild/] used to fade the contend outside the upload dialog |
*fileUploadForm.jsp and lbContent - the jsp page containing the struts form. It containf a {{lbContent}} div tag which represent the html code inserted in the upload dialog. It also contains an embeded javascript with the function {{function upload(form)}} This script only trigger the upload mechanism if one or more files has been selected. |
*dwrUpload.js - This script is the ajax functions that updates the content of the upload dialog. You can tweak the dialog refreash rate here. |
*ExtendedMultiPartRequestHandler.java - a slightly changed Struts controller (change marked by "Changed this section of code, that is it."). There is one important line here {{{UploadListener listener = new UploadListener(request, 1);}}} The '1' here means delay to 1 millisecond. By increasing this value uploads wil take longer time but will also be less CPU intensive. |
**FileUploadAction.java - the struts Action responsible for reciving the uploaded files and save them to disk |
**lightboxDwrUpload.js - The modified [Lightbox Gone Wild!|http://particletree.com/features/lightbox-gone-wild/] used to fade the contend outside the upload dialog |
**fileUploadForm.jsp and lbContent - the jsp page containing the struts form. It containf a {{lbContent}} div tag which represent the html code inserted in the upload dialog. It also contains an embeded javascript with the function {{function upload(form)}} This script only trigger the upload mechanism if one or more files has been selected. |
**dwrUpload.js - This script is the ajax functions that updates the content of the upload dialog. You can tweak the dialog refreash rate here. |
**ExtendedMultiPartRequestHandler.java - a slightly changed Struts controller (change marked by "Changed this section of code, that is it."). There is one important line here {{{UploadListener listener = new UploadListener(request, 1);}}} The '1' here means delay to 1 millisecond. By increasing this value uploads wil take longer time but will also be less CPU intensive. |
Back to CreateAnAJAXBasedFileuploadProgressbarDialog,
or to the Page History.
|