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 6017395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:07:20+00:00 2026-05-23T03:07:20+00:00

I want to use the Ajax-Upload script to upload multiple images. The kicker is

  • 0

I want to use the Ajax-Upload script to upload multiple images. The kicker is I have to use Asp.net webforms, the way I’ve been doing ajax has been to have a simple page web method like so.

[WebMethod()]
public static string Method(string param)
{
    return "Hello World";
}

I am running into trouble figuring out how to upload an image without using the webforms FileUpload control so I can upload files asynchronously. I must be using the wrong search terms because I cannot find another example of someone doing this inside of webforms.

EDIT: To be more specific I am looking for help with the server side. The plugin I linked to handles all of the client side stuff. I am currently looking into writing a customer handler…

I’d prefer to avoid using update panel controls(like the AjaxToolkit) and just stick to the plugin if thats possible.

  • 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-05-23T03:07:21+00:00Added an answer on May 23, 2026 at 3:07 am

    ANSWER:

    What I did was wrote an Image Upload handler script that is pretty basic but it should get the job done. Here it is.

        public void ProcessRequest(HttpContext context)
        {
            string uploadDir = "C:\\Upload";
            try
            {
                Image i = Image.FromStream(context.Request.InputStream);
                string filename = context.Request.Params["qqfile"];
    
                if (i.RawFormat.Equals(ImageFormat.Png))
                {
                    i.Save(uploadDir + "\\" + filename, ImageFormat.Png);
                }
                else if (i.RawFormat.Equals(ImageFormat.Jpeg))
                {
                    i.Save(uploadDir + "\\" + filename, ImageFormat.Jpeg);
                }
                else if (i.RawFormat.Equals(ImageFormat.Gif))
                {
                    i.Save(uploadDir + "\\" + filename, ImageFormat.Gif);
                }
                else if (i.RawFormat.Equals(ImageFormat.Bmp))
                {
                    i.Save(uploadDir + "\\" + filename, ImageFormat.Bmp);
                }
            }
            catch (Exception e)
            {
                context.Response.Write("{'error':'"+e.Message+"'}");
            }
    
            context.Response.Write("{'success':true}");
        }
    

    And this works with the Ajax-Upload script I linked to earlier. Thanks

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

Sidebar

Related Questions

I have an asp.net user control on which I want to use jquery ajax.
I have asp.net 3.5 website, and i want to put an ajax uploader, but
Hello I'm doing file upload with Yii. I have implemented this way and it
I want use ajax.net to do some js. like below: ScriptManager.RegisterStartupScript(Submit, typeof(Button), alert, location.href='test.aspx';,
I want any php script which can demonstrate me how to upload multiple files
I'm looking for a way to have user upload as many images as they
I'm trying to use this plugin http://valums.com/ajax-upload/ . I added a file-limit, I want
I've developed an asp.net site.in most pages of it , I use the $.ajax
I was looking for an elegant way to upload images AJAX style. I'm new
I want to use Goolge AJAX Feed API in my C# console application to

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.