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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:41:24+00:00 2026-06-04T02:41:24+00:00

I created a method in order to upload an image to my server by

  • 0

I created a method in order to upload an image to my server by using web api. However I need to send additional parameters while sending multipart form data. What I want to do is to create a methods which gets required parameters and uploads to desired place by looking that parameters. The method is as like as below

public void AddPhotoItemData( int UserID, int QuestID, int QuestTemplateItemID, double Latitude,  double Longitude)

What I COULD NOT do is to trig this method while sending multipart form data and these parameters at the same time. Is there anyway to upload a file with a method that has parameters?

Regards,
KEMAL

  • 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-04T02:41:25+00:00Added an answer on June 4, 2026 at 2:41 am

    The method in your question uses an RPC style signature which runs against the grain of the uniform interfaces that an HTTP based API provides. Look at this good blog post to see what are the “philosophical” differences between RPC and HTTP based APIs.

    The Web API facilitates creating HTTP based APIs. This implies you’ll be sending “representations” to specific URIs using the standard GET/POST/DELETE & other HTTP methods. That’s why multiple “parameters” in a “call” aren’t really supported without wrapper of some sort.

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

Sidebar

Related Questions

I've created a custom method called checkout in my app. I create an order
I've created a method using the new WebAPI features in MVC4 and have it
I created a web method but when i go to the site and type
I created this method deleteCharAt in order to remove a char from a string
I am trying to automate some upload/download tasks from an ftp web server. When
I created a method to swap the cars from the owners. bool owner::changeCar(owner& other,
I have created a method that should ideally take a single Account object and
I have Dropdownlist on my page and its selectedindexchanged method created in code behind
I created the following method for retrieving stored settings from the database: public String
I created an extension method called HasContentPermission on the System.Security.Principal.IIdentity : namespace System.Security.Principal {

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.