• How to cancel file upload

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #30644  by mohasinmujawar56
 
I am using OpenKM 6.3 and have downloaded source code from svn. I want to add an option in File upload form for cancelling the upload. Is it possible to cancel the file upload? If yes can you please elaborate on this with some example. Because as I am seeing in source code and understanding it, you are passing and setting many events at the time of uploading. So if possible can you please explain with example like code or something?
 #30678  by jllort
 
The change should be done in FancyFileUpload and in some way destroy the post what has been done. Any patch on this direction will be wellcome.
 #30731  by mohasinmujawar56
 
I have tried many things like setting the widgetState to Empty State on click of Cancel button but it was not working. Then I tried to close ffUpload and remove all pending files from queue if any, not worked. Didn't get any solution for this. Can anyone please give some ideas to do so?
 #30745  by jllort
 
Take a look you're submiting a form. The idea will be destroy this form what you're submitting and reset some vars to continue with next form.

fileupload var is a FormPanel ( take a look into the class )
Code: Select all
public class FormPanel extends SimplePanel implements FiresFormEvents, FormPanelImplHost {
Seems FormPanel is marked as deprecated by GWT and replaced by FileUpload. Here I see two possibilities ( extends actual FormPanel or investigate if it's possible doing with FileUpload, I suggest some sample in both cases before trying to change openkm code).

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.