Gary Lawrence Murphy wrote:
Hello,R> It should be. Turbine has added support for these substitution"R" == Raphael Luta <Luta> writes:
R> variables through the use of commons-configuration... This has
R> already been a while that it's available.
Cool. Do you have a reference for that doc?
Maybe this discussion thread can help me. I would be greaty appreciated.
I cant get FileItem.write(String file) to work. I throws an FileNotFoundException: GIF89a (something binary);
(The filename, directory name, or volume label syntax is incorrect)
The scenario is the following:
Having the following action:
public void doUploadbanner(RunData data, Context context) {
ParameterParser params = data.getParameters();
try {
FileItem fi = null;
fi = params.getFileItem("uploadfile");
if (fi != null) {
String content = fi.getString();
fi.write(content);
}
} catch (Exception e) {
System.out.println("----START----");
System.out.println(e.getMessage());
System.out.println("----END----");
e.printStackTrace();
}
And the following HTML,
<form action="$jslink.Template" enctype="multipart/form-data" method="POST">
<input type="file" name="uploadfile">
<input type="submit" value="upload" />
</form>
it fails with the following execption:
----START----
GIF89a..... .(something binary)
----END----
java.io.FileNotFoundException: GIF89a (something binary);
(The filename, directory name, or volume label syntax is incorrect)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:176
I have experimented with different repository paths in TR.p but it throws the same exception. My current TR.p states:
services.UploadService.repository=/WEB-INF/tmp/upload
Please advice,
Best regards
Henrik
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
