Testing the application

{scrollbar}

We now have to INLINE

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.

htmluploader.htmlsolid <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.


#ccc#FFFFCE#F7D6C1That's itsolid

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



{scrollbar}
  • No labels