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

  • Home
  • SEARCH
  • 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 9210119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:59:41+00:00 2026-06-18T00:59:41+00:00

i want to upload a file to server WEB-INF/attachments using jquery ajax or any

  • 0

i want to upload a file to server WEB-INF/attachments using jquery ajax or any other mechanism, Because i have to upload the file without refreshing the page. I have been goggling but not found any which will help me.

Please help me as i am struggling with this for two days.

I am sure that this question will bring me many down votes and request to close also but don’t know other than asking here. 🙁

Best Regards

  • 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-18T00:59:42+00:00Added an answer on June 18, 2026 at 12:59 am

    You can use this:
    Create form with attribute target='file_upload_iframe'.
    Create iframe with attribute name='file_upload_iframe'.
    The form will be submitted into the iframe and response of the POST request will be in the iframe. So you can check with jquery what in response (error, sucess or smth else) and show the message to user. Also you need to hide your iframе on production, but for debug you can display it. It’s very useful.

    And you can use something like this to check upload result:

    $('document').ready(function()
    {
        $('iframe#file_upload_iframe').load(function()
        {
           callback(this);
        });
    });
    

    Pluses:
    This is crossbrowser method as I know.

    Minuses:
    The loading icon of browser tab will appear, but it is not so terribly, IMHO.

    P.S. Also you can use plugins http://blueimp.github.com/jQuery-File-Upload/
    7 trusted ajax file upload plugins using jquery

    But some of them use flash…

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

Sidebar

Related Questions

I want to upload an Excel File using (HTML.Input) in some folder in server
I am currently using php and ajax file upload to develop a web application.
I want to upload file using drag and drop. I have written code as
I want to upload a file using GWT to REST web service. But I
I want to upload videos with next way: I just upload file to server
In Flex i want to upload a particular file to server form local system.how
In my application I want to upload file from SD card to my server.
i want to upload the sound file (.ogg) in server. But it should write
I want to upload a file to a ftp server programmatically (C++). If the
I want to upload file to a host by using WebClient class. I also

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.