18 package org.turro.file.action;
21 import java.io.IOException;
22 import java.util.List;
23 import java.util.Properties;
24 import java.util.logging.Level;
25 import java.util.logging.Logger;
26 import org.turro.command.Command;
27 import org.turro.command.Context;
28 import org.turro.elephant.context.ElephantContext;
29 import org.turro.elephant.impl.util.ShellExecutor;
30 import org.turro.file.FileWrapper;
31 import org.turro.i18n.I_;
47 return I_.
get(
"Upload");
52 return "/_zul/images/upload.png";
61 public Object execute(Context context) {
62 List<File> newFiles = (List<File>) context.get(
"files");
63 if(newFiles !=
null) {
64 for(File newFile : newFiles) {
66 for(
int i = 0; i < 20; i++) {
67 String command = props.getProperty(
"cmdupl" + i,
null);
68 if (command !=
null) {
78 }
catch (IOException ex) {
static String logMsg(String msg)
int execute(String command)
Properties getProperties()
void upload(final Command command)
UploadAction(FileWrapper fw)
static String get(String msg)