| | |
| | | } |
| | | |
| | | private UploadResult doSaveOneFile(String path, String internalPath, String filecode, FileItem item) throws Exception { |
| | | String itemName = item.getName().substring(item.getName().lastIndexOf("\\") == -1 ? 0 : item.getName().lastIndexOf("\\") + 1); |
| | | String itemName = item.getName().subString(item.getName().lastIndexOf("\\") == -1 ? 0 : item.getName().lastIndexOf("\\") + 1); |
| | | |
| | | String internalFile = Util.joinPath(internalPath, itemName); |
| | | File file = new File(root, internalFile); |
| | |
| | | int pos = value.indexOf("("); |
| | | |
| | | if (pos > 0) { |
| | | String realname = name.substring(0, pos); |
| | | String format = name.substring(pos + 1, name.length() - 1); |
| | | String realname = name.subString(0, pos); |
| | | String format = name.subString(pos + 1, name.length() - 1); |
| | | |
| | | VariantRequestParams params = new VariantRequestParams(); |
| | | params.addParam("format", format); |