mirror of
https://github.com/alvierahman90/uploadr.git
synced 2025-10-14 00:14:27 +00:00
takes configuration from same file as gunicorn
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<form action = "http://{{ ip }}:{{ port }}/upload" method = "POST"
|
||||
<form action = "/upload" method = "POST"
|
||||
enctype = "multipart/form-data">
|
||||
<div class="fileUpload btn">
|
||||
<span>Upload</span>
|
||||
|
@@ -9,8 +9,8 @@
|
||||
<script>
|
||||
|
||||
file = document.getElementById('file_link');
|
||||
file.setAttribute('href','http://{{ ip }}:{{ port }}/download/{{ filename }}');
|
||||
file.innerHTML = 'http://{{ ip }}:{{ port }}/download/{{ filename }}';
|
||||
file.setAttribute('href','/download/{{ filename }}');
|
||||
file.innerHTML = '/download/{{ filename }}';
|
||||
|
||||
</script>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user