testfile.ftl: cleanup
TestFileController.java: cleanup
This commit is contained in:
parent
26f1c62249
commit
0930811696
2 changed files with 2 additions and 10 deletions
|
@ -102,11 +102,6 @@
|
|||
</style>
|
||||
|
||||
|
||||
<div id="responseArea">
|
||||
<ul id="fileListing">
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="step1" class="testfile-step">
|
||||
<h3 class="testfile-step-header">Step 1</h3>
|
||||
<div id="step1-inner" class="testfile-step-body">
|
||||
|
@ -142,10 +137,7 @@
|
|||
<iframe id="uploadTarget" name="uploadTarget" src="" style="width:0;height:0;border:0px solid #fff;">${testvalue!}</iframe>
|
||||
</form>
|
||||
<h5>Uploaded files</h5>
|
||||
<ul>
|
||||
<li>file1.csv <span style="color:green">success</span></li>
|
||||
<li>file2.csv <span style="color:green">success</span></li>
|
||||
<li>file3.csv <span style="color:red">upload failed: error parsing CSV file</span></li>
|
||||
<ul id="fileListing">
|
||||
</ul>
|
||||
</div>
|
||||
<div class="clearBothDiv" />
|
||||
|
|
|
@ -64,7 +64,7 @@ public class TestFileController extends FreemarkerHttpServlet {
|
|||
|
||||
JSONObject json = new JSONObject();
|
||||
|
||||
String path = "/home/mbarbieri/tempfileupload/"; //todo: complete
|
||||
String path = ""; //todo: complete
|
||||
if(fileStreams.get("csvFile") != null && fileStreams.get("csvFile").size() > 0) {
|
||||
FileItem csvStream = fileStreams.get("csvFile").get(0);
|
||||
String name = csvStream.getName();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue