Question Why am I getting a NullPointerException when uploading files?
Answer If the platform is running a Linux/Unix flavor, then you must define a temporary directory for placing uploaded files. You can do this by editing the xwiki.cfg file (located in the WEB-INF directory), and adding the following:

Created by Sergiu Dumitriu on 2007/01/14

Get Connected