Site Notice

hello, world

FormData

From Project-EPB Commons
Revision as of 16:30, 8 April 2020 by 机智的小鱼君 (talk | contribs) ([InPageEdit] 没有编辑摘要)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<html> <form id="myForm"> <label> <input type="hidden" name="action" value="upload"/> <input type="hidden" name="filename" value="test.png"/> <br/> <input type="file" name="file"/> <br/> <input name="token" value="" readonly/> <input type="button" onclick="$('input[name=\'token\']').val(mw.user.tokens.get('csrfToken'));return false;"/> </label> </html>