[jboss-user] [JBoss jBPM] - Re: File path is looked in the server machine

dleerob do-not-reply at jboss.com
Fri May 23 08:04:49 EDT 2008

This is not a Jbpm question, it is a normal Java web application question, so you should look for the answer elswhere.

However, basically you cannot have the Java code sitting on your server, accessing a path on your client machine. This is obvious for security/design reasons etc.

What you could do is have your web browser "upload" the file, using a form. Make sure the enctype is 'multipart/form-data', then have a servlet on your server read that uploaded data, write it to a file on your server local disk, and then you can do whatever you want with it from there.

Try googling for "uploading a file using JSP" or something along those lines. There are a lot of places to find out how to "upload" a file using Java/JSP etc.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152944#4152944

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152944

More information about the jboss-user mailing list