mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: add multipart/form-data parser and file upload (#8160)
This commit is contained in:
14
examples/vweb/file_upload/upload.html
Normal file
14
examples/vweb/file_upload/upload.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<meta charset="utf-8">
|
||||
|
||||
File amount: @fdata.len
|
||||
|
||||
@for i, data in fdata
|
||||
|
||||
<h2>Filename: @data.filename</h2>
|
||||
<h2>Type: @data.content_type</h2>
|
||||
|
||||
<p>@{files[i]}</p>
|
||||
|
||||
@end
|
||||
|
||||
<a href="/">Back</a>
|
Reference in New Issue
Block a user