Hello,
I need to upload a XML file from a form and parse it to put the datas it
contains in a database.
So I wrote my form like this :
| <form method="post" ENCTYPE="multipart/form-data"
action="$link.setPage("Index.vm").setAction("SQL")">
| upload :
| <input type=file name="upfile">
| <input type="submit" name="eventSubmit_doUpload"
value="Upload">
| </form>
...and the corresponding SQL.java like that :
| public void doUpload(RunData data, Context context)
| throws Exception
| {
| Log.debug("Upload : "+data.getParameters().getString("upfile"));
| }
( the Log.debug method just allows me to verify that the doUpload method
is called when I press the "Upload" button of the form )
but all I get in my log file is :
Upload :
so where's the file name ?
thanks
Patrice