Commit 207565f0 authored by Efi's avatar Efi
Browse files

Merge pull request #223 from ioantsaf/upload-bugfix

Fix upload bug
parents f7638c4d 8047bae8
......@@ -34,7 +34,7 @@ var UploadController = Ember.Controller.extend({
progress.className = "progress-bar progress-bar-striped active";
progress_bar.hidden=true;
var res = this.get("file").split(".");
var res = document.getElementById("file").value.split(".");
var ext = res[res.length-1];
if (ext !== "jar")
{
......
......@@ -100,7 +100,7 @@
<div class="form-group col-sm-6">
<label for="type" class="col-sm-6">File to upload: </label>
<div class="col-sm-6" >
{{input value=file type="file" name="file" id="file" required="true" accept=".jar"}}
{{input type="file" name="file" id="file" required="true" accept=".jar"}}
<span id="helpBlock" class="help-block">Upload the file of the application.<br>Only jar files are accepted.</span>
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment