Results 1 to 3 of 3

Thread: file upload with Ajax request

Hybrid View

  1. #1

    Exclamation file upload with Ajax request

    Hi all,

    I'm trying to upload a file from a SWF 2.0.7 popup, and I'm facing a weird behaviour.

    If ever I submit my form with a "simple" submit button, no javascript, then the file is submitted ok, my command bean is populated. The problem is that if there is validation error, the page is refreshed inside a new blank page, and not inside the popup div. Not acceptable

    So I submitted the form using javascript : Spring.remoting.submitForm. But then, the file property of my bean is not populated.

    Is that a bug? If it is, should I open Jira for that?

    Thanks for your answers.

  2. #2
    Join Date
    Dec 2008
    Location
    Ulaanbaatar, Mongolia
    Posts
    123

    Default

    I'm having this problem also.
    Someone fixed this?
    Let's care our nature!

  3. #3
    Join Date
    Dec 2008
    Location
    Ulaanbaatar, Mongolia
    Posts
    123

    Default

    I've enabled debug logging and saw following differences between normal and ajax form submit:

    1. Normal submit:
    Code:
    Processing user event 'upload'
    Resolved model org.mobinet.mvc.model.OrderModel@1287f15
    Binding to model
    Adding default mapping for parameter 'file'
    Adding default mapping for parameter 'execution'
    Adding default mapping for parameter 'ajaxSource'
    2. Ajax submit:
    Code:
    Processing user event 'upload'
    Resolved model org.mobinet.mvc.model.OrderModel@feeed7
    Binding to model
    Adding default mapping for parameter 'execution'
    Adding default mapping for parameter 'ajaxSource'
    I think Spring.remoting.submitForm not supports file input.
    Let's care our nature!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •