fixing bug #5125
fixing bug #5174 by using right method
security #token :  Use HttpRequest instead of HttServletRequest and FileUploadUtil in order to use a more advanced methods provided by the HttpRequest class, in particular the methods about the fetching of FileItem objects coming from a mutlipart stream