title: null value in file upload by using MultipartFile in spring 2.5
body: <p>I am stucked to something. In spring 2.5 framework, I want to upload file by using MultipartFile. I have a class called Dosya including property which is MultipartFile multiDosya. My command object is dosya. Additonally, The file which will be uploaded is stored BLOB type in database, sql developer,.
  In jsp, I try to bind this propert like below:</p>
  
  <pre><code>&lt;spring:bind path="dosya.multiDosya"&gt;
    &lt;input class="file" type="file" name="yuklenecekDosya" id="yuklenecekDosya" /&gt;
  &lt;/spring:bind&gt;
  </code></pre>
  
  <p>In onSubmit,</p>
  
  <pre><code> Dosya dosyaObjesi = (Dosya)command;
   MultipartFile yuklenecekDosya = dosyaObjesi.getMultiDosya();
  </code></pre>
  
  <p>The commandObject dosyaObjesi is taken without problem, however, </p>
  
  <pre><code>dosyaObjesi.getMultiDosya()
  </code></pre>
  
  <p>value is coming null although file that will be uploaded is selected in jsp.</p>
  
  <p>After searching on the net, I found that this line below should be added to the initBinder.</p>
  
  <pre><code> binder.registerCustomEditor(byte[].class, new ByteArrayMultipartFileEditor());
  </code></pre>
  
  <p>However, my class says that there is no such class ByteArrayMultipartFileEditor, but it is available in spring-2.5.jar. I import </p>
  
  <pre><code>import org.springframework.web.multipart.*;
  </code></pre>
  
  <p>can trace out the problem . could someone please help me out </p>
  
  <p>Thanks in advance.</p>