diff options
| author | Juuso Lapinlampi <wub@partyvan.eu> | 2015-09-26 15:26:29 +0200 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2015-09-26 15:26:29 +0200 |
| commit | d6dc103c7229cb0e2e177ce0dfc0cfb528025ca9 (patch) | |
| tree | 3c972f56fbc83851d9d13a27bd7f1f4ee9f00854 /pages/upload_form_nojs.swig | |
| parent | f7c2a6a2ae9bac171cce2a6b42304d01c9cc5068 (diff) | |
Use <input type="hidden"> in upload_form_nojs.swig
Replacing <form> action with an <input> creates an additional semantic
meaning, and it's now modifiable more easily in DOM.
Diffstat (limited to 'pages/upload_form_nojs.swig')
| -rw-r--r-- | pages/upload_form_nojs.swig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pages/upload_form_nojs.swig b/pages/upload_form_nojs.swig index dcbb91a..62b1c6d 100644 --- a/pages/upload_form_nojs.swig +++ b/pages/upload_form_nojs.swig @@ -20,7 +20,8 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #} -<form enctype="multipart/form-data" method="post" action="upload.php?output=html"> +<form enctype="multipart/form-data" method="post" action="upload.php"> + <input type="hidden" name="output" value="html"> <input type="file" name="files[]" multiple data-max-size="{{max_upload_size}}MiB"> <input type="submit" value="Submit"> </form> |
