Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7898813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:32:14+00:00 2026-06-03T08:32:14+00:00

I have an issue using Ajax upload with Spring 3 MVC. I understand that

  • 0

I have an issue using Ajax upload with Spring 3 MVC. I understand that I have to configure multipartResolver bean in spring config, which I’ve done. Than I can have controller like this

@RequestMapping(value ="/settingsSim")
@ResponseBody
public Map uploadSimSettings(@RequestParam(value="qqfile", required=true) MultipartFile settings) {
 Map<String, Object> ret = new HashMap<String, Object>();
 return ret;
}

The problem is that when I actually send the request to the server (actually valums Ajax file upload does this for me), I get an Internal server error response and nothing is shown in the logs. I am really scratching my head now, as I cannot figure out the problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:32:15+00:00Added an answer on June 3, 2026 at 8:32 am

    When using valums plugin I solved this problem by using @RequestBody Spring annotation.
    You could rewrite your code as follows:

    @RequestMapping(value ="/settingsSim",method=RequestMethod.POST)
    @ResponseBody
    public Map uploadSimSettings(@RequestBody String body) {
     /*
     some controller logic 
     */
    }
    

    Note that the variable body will contain the contents of the uploaded file. Also there is no method declaration in your example which means that your method will be mapped to GET request.

    P.S. I also had this “no multipart boundary” problem when parsing request with Apache Commons. HttpServletRequest#getParts() returns just an empty collection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using ASP.Net Ajax's Page Methods and I have an issue that an
I have an odd issue while using FlashCS4. I have a textfield that, when
I have an MVC site, secured using [Authorize] attributes, but have an issue on
I have several performance issue in my website. I'm using asp.net mvc 2 and
I have an issue retrieving ajax data using jquery 1.3.2 / 1.4.2: It works
I currently have a ASP.Net MVC web application that needs to upload large files
I'm using a Grails plugin for ajax upload, http://grails.org/plugin/ajax-uploader , that is directly based
I have a grid using AJAX DATABINDING. When I issue a POPUP EDITING command
I have a several divs that a refreshed using Ajax after the user clicks
I have a codeigniter application.In that i call the controller function using ajax/jquery.But when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.