Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Testing the application

Wiki Markup
{scrollbar}

We now have to

Excerpt

write the upload form

to test our application.

Creating the html upload form

We will now create the upload form in the projects root folder.

Code Block
html
html
titleuploader.html
borderStylesolid
<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
titleThat's it
borderStylesolid

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.

Return to start page



Wiki Markup
{scrollbar}