We now have to
Excerpt |
---|
write the upload form |
to test our application.
We will now create the upload form in the projects root folder.
Code Block |
---|
| html |
---|
| html |
---|
title | uploader.html |
---|
borderStyle | solid |
---|
|
<html>
<head>
<title>Uploader</title>
</head>
<body>
<h2>File Uploader</h2>
<form action="http://localhost:8192/upload/" method="post" enctype="multipart/form-data">
Select file: <input type="file" id="file" name="file"></input>
<br /><br />
<input type="submit"></input>
</form>
</body>
</html>
|
Save everything and open this page inside your browser. Select a file to upload and submit it.
If everything is ok(depending on your browser settings) a popup should apear which asks you what to do with the file.
Panel |
---|
borderColor | #ccc |
---|
bgColor | #FFFFCE |
---|
titleBGColor | #F7D6C1 |
---|
title | That's it |
---|
borderStyle | solid |
---|
|
Thank you for reading this tutorial. Feel free to improve the code as you want or add your own logic. NOTE: If you find errors in this document please correct them or leave a comment what's wrong. |