Use helma.util.MimePart instead of helma.objectmodel.Node for
file uploads
This commit is contained in:
parent
8d75f51be1
commit
aba59483ee
1 changed files with 2 additions and 4 deletions
|
@ -4,7 +4,6 @@
|
||||||
package helma.util;
|
package helma.util;
|
||||||
|
|
||||||
import helma.mime.*;
|
import helma.mime.*;
|
||||||
import helma.objectmodel.*;
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
|
@ -76,9 +75,8 @@ public class Uploader {
|
||||||
filename = filename.substring (sep+1);
|
filename = filename.substring (sep+1);
|
||||||
}
|
}
|
||||||
if (filename != null) {
|
if (filename != null) {
|
||||||
Node node = new Node (filename);
|
MimePart part = new MimePart (filename, newb, type);
|
||||||
node.setContent (newb, type);
|
parts.put (name, part);
|
||||||
parts.put (name, node);
|
|
||||||
} else {
|
} else {
|
||||||
parts.put (name, new String (newb));
|
parts.put (name, new String (newb));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue