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;
|
||||
|
||||
import helma.mime.*;
|
||||
import helma.objectmodel.*;
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
|
||||
|
@ -76,9 +75,8 @@ public class Uploader {
|
|||
filename = filename.substring (sep+1);
|
||||
}
|
||||
if (filename != null) {
|
||||
Node node = new Node (filename);
|
||||
node.setContent (newb, type);
|
||||
parts.put (name, node);
|
||||
MimePart part = new MimePart (filename, newb, type);
|
||||
parts.put (name, part);
|
||||
} else {
|
||||
parts.put (name, new String (newb));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue