The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

netname (21) [Avatar] Offline
In Listing 5.6 I assume that you would like to change the path from "/documentcloud" to "/"
since we have already "mounted " the FileUpload servlet to "/upload"

In Listing 5.7 item variable should be file and mediabase should be initialized

However I cannot manage to make it work. I am in Windows and I am setting mediabase to "c:/temp". Also, I did not change the web.xml file as shown in page 17 since I kept getting error messages from my IDE that the servlet mapping was missing.

Any idea on what is wrong?
StefanOllinger (8) [Avatar] Offline
Re: FileUpload Errors and Question

you are right about modifying the action url in the form. For listing 3.7, FileItem is actually correct and mediaBase is read from the outer class.

We created a public source code repository at:

Can you try executing the code with SBT?