Hi all,
I decided to use FileTransfer Library for my document management application. It works well, but i must edit some part of this component for special purposes.
When users are adding a document to the application they give some inputs like document number, document type, the other users which will be notified,...other than choosing the document.
For example, let user choose a file named "abc.doc", then user gives a document number "01.00.00" and choose the folder "My Docs/Folder A" that file would be stored (not java.io.tmp). Then user pushes the "save" button (other than "send/upload" button of the UploadSelect component). In the action listener of the button i must add a record to the database before uploading the document and get its IDDocument (for example IDDocument=18). Then i must upload the document as "18.doc" other than "abc.doc".
I don't know which part of the component to edit. Please instruct me.
Sorry for my english.
Hello, if you wish to be
Hello,
if you wish to be able to do the upload and "save of the form" (Just like in Web 1.0 days with a form submit) then I think the tucana upload component in the echopoint libraries should be able to do this. (At least in echo 2.0 it was possible with the tucana upload component)
http://wiki.nextapp.com/echowiki/EchoPoint
André
The current tucana upload
The current tucana upload IIRC does not have such a feature. There is an auto upload feature (spawned as soon as you choose a file through file browser). Handling regular form post with files can be quite challenging, and you will definitely have to write a custom component that updates the current view as well as send a file upload request in the background.
I think the easiest alternative is to upload the files as usual, and then depending upon status of the form on screen either move the uploaded file to its official location, or delete. Tod did mention that the latest file upload library allows multiple file upload. That can help to an extent, but I don't think that address this particular use case.
Not related to your
Not related to your question, but just had to ask out of curiosity. Are you using JCR for managing the documents? I have just started working with it for a project, and so far I think it is really cool.
Hi rakesh, i examined
Hi rakesh, i examined JSR-283 for a while. It is very useful for document management systems but i decided not to use it in my project. But i recommend using this specification for such content management systems.