Index: C:/Documents and Settings/Benjamin/Mes documents/workspaces/workspaceApache/jakarta-jmeter-rel2.1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java =================================================================== --- C:/Documents and Settings/Benjamin/Mes documents/workspaces/workspaceApache/jakarta-jmeter-rel2.1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java (revision 349940) +++ C:/Documents and Settings/Benjamin/Mes documents/workspaces/workspaceApache/jakarta-jmeter-rel2.1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java (working copy) @@ -78,7 +78,7 @@ ((HttpURLConnection) connection).setRequestMethod("POST"); // If filename was specified then send the post using multipart syntax - String filename = sampler.getFileField(); + String filename = sampler.getFilename(); if ((filename != null) && (filename.trim().length() > 0)) { connection.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + BOUNDARY); connection.setDoOutput(true);