file upload and validation

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

file upload and validation

claude felizardo
Howdy,

I'm wondering if xforms would help with a project.  I need to create a
web application that allows users to upload a set of files, validate the
contents of the files and move them to a staging area.   File types
include images, pdf, txt, doc, etc.  Validation includes verifying that
a file is of the proper format - ie, that a file with a .jpg extension
actually is a jpeg file.  Once all files have passed the initial
inspection, then the user is allowed to "submit" the files and they will
be moved to a staging area for further processing.

Eventually I may need to provide a bulk upload capability - possibly a
large tarball containing tens or even hundreds of files in which case
I'll probably need to perform the validation asynchronously with
notification via email.

I've been playing with the file upload example and have been happy with
the way it lets me add new files to the upload list and enable/disable
the upload button depending on other required fields - all with out
having to write any traditional code.  I have also played with a
pipeline that calls a unix shell script to do simple things like moving
hard coded files but I'd like to do it programmatically.  

I'm looking for examples on how to do the following:

1) actually do something with a file that has been uploaded
2) validation using an external program
3) move files from the web server temp area to another area
4) Is it possible to add additional attributes to the file element such
as a validation flag or do I need to create my own wrapper element that
contains both the file element and status flag?
5) authentication of users

BTW, how appropriate would it be to use xforms to create a work-flow
application?

thanks in advance,
claude




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws