diff --git a/src/main/java/org/ntlab/amaryllis/server/resources/VoicememosRest.java b/src/main/java/org/ntlab/amaryllis/server/resources/VoicememosRest.java index 215c42a..261ada0 100644 --- a/src/main/java/org/ntlab/amaryllis/server/resources/VoicememosRest.java +++ b/src/main/java/org/ntlab/amaryllis/server/resources/VoicememosRest.java @@ -76,13 +76,13 @@ String vid = createVid(); String path = ""; try { - path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps/amaryllis/WEB-INF";; + path = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps";; path = Base64Decode.saveAsFile(vid, path, data); } catch (IOException e) { e.printStackTrace(); throw new WebApplicationException(500); } - String url = "http://nitta-lab-www.is.konan-u.ac.jp/amaryllis" + path; + String url = "http://nitta-lab-www.is.konan-u.ac.jp" + path; Voicememo v = voicememos.createVoicememo(vid, uid, time, url, latitude, longitude, title, summary); if (v == null) { throw new WebApplicationException(400);