2 Replies Latest reply on Mar 18, 2011 6:20 PM by arturo eduardo cabrera cordoba

    rich:fileUpload and null data

    Andriy Pashkevych Newbie

      I'm trying to upload a file to the server using rich:fileUpload, the code I'm using looks like this :




      public class FileUploader {

      private byte[] fileData;

          public void uploadFileListener(UploadEvent uploadEvent) {
              fileData = uploadEvent.getUploadItem().getData();
              //other code here


      page contains the following :

      rich:fileUpload fileUploadListener="#{fileUploader.uploadFileListener}"

      but uploadEvent.getUploadItem().getData(); returns null... 
      I've set those parameters in web.xml as well :









      still returns null,...