if formdata not there..
This commit is contained in:
@@ -7,8 +7,16 @@
|
|||||||
<input id="list_upload_name" type=hidden name=name value="{{ name|safe }}" />
|
<input id="list_upload_name" type=hidden name=name value="{{ name|safe }}" />
|
||||||
<input type=hidden name=from_gui value="true" />
|
<input type=hidden name=from_gui value="true" />
|
||||||
<input id="list_upload_select" type=file name=file onchange="FileSelectHandler(event)"><br>
|
<input id="list_upload_select" type=file name=file onchange="FileSelectHandler(event)"><br>
|
||||||
<!--input id="list_upload_button" type=submit value=Upload disabled-->
|
<input id="list_upload_button" type=submit value=Upload>
|
||||||
<div id="progress"></div>
|
<div id="progress"></div>
|
||||||
|
<script language="javascript">
|
||||||
|
try {
|
||||||
|
var formdata = new FormData();
|
||||||
|
document.getElementById("list_upload_button").hidden = true;
|
||||||
|
} catch(err) {
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
Reference in New Issue
Block a user