1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-27 02:59:47 +02:00

allow download pdf file

This commit is contained in:
Xuan Sang LE
2018-09-11 10:35:02 +02:00
parent 9d8e0916a2
commit 4710f183e1
8 changed files with 96 additions and 1 deletions

View File

@ -0,0 +1,15 @@
<?lua
if REQUEST.method == "POST" then
return echo(JSON.encode(REQUEST))
end
?>
<form action="https://apps.localhost:9195/index/form" method="post">
<fieldset>
<legend>Personal information:</legend>
First name:<br>
<input type="text" name="firstname" value="Mickey"><br>
Last name:<br>
<input type="text" name="lastname" value="Mouse"><br><br>
<input type="submit" value="Submit">
</fieldset>
</form>

View File

@ -0,0 +1,3 @@
<?lua
echo(JSON.encode(REQUEST))
?>

View File

@ -0,0 +1,12 @@
<?lua
if REQUEST.method == "POST" then
return echo(JSON.encode(REQUEST))
end
?>
<form action="https://apps.localhost:9195/index/upload" method="post" enctype="multipart/form-data">
Select image to upload:
<input type="file" name="fileToUpload" id="fileToUpload">
<input type="file" name="fileToUpload1" id="fileToUpload1">
<input type="submit" value="Upload Image" name="submit">
</form>