parent
b753df360b
commit
a985eab0ca
|
@ -144,11 +144,11 @@ public class NLPUploader extends HttpServlet {
|
|||
String stringContent = new String(bufferedContent);
|
||||
stringContent = NlpUtils.replaceDirtyCharacters(stringContent);
|
||||
|
||||
ws.deleteFile(fileName);
|
||||
|
||||
|
||||
if (!ws.uploadFile(stringContent.getBytes(), fileName, Constants.DEFAULT_DESCRIPTION)) {
|
||||
writer.println(new JsonManager().getErrorJsonResponse(
|
||||
"Error uploading file. A file called '" + fileName + "' is already in the workspace?"));
|
||||
"Error uploading file called '" + fileName + "'. "));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue