You are here: RainWorx.FrameWorx.MVC Namespaces > RainWorx.FrameWorx.MVC.Areas Namespaces > RainWorx.FrameWorx.MVC.Areas.API Namespaces > MediaController Class

MediaController Class

AuctionWorx 3.5 API
Provides services to Create/Upload, and Get Media
Inheritance Hierarchy

SystemObject
  ApiController
    RainWorx.FrameWorx.MVC.Areas.API.Controllers.BaseAuctionWorxAPIController
      RainWorx.FrameWorx.MVC.Areas.API.ControllersMediaController

Namespace:  RainWorx.FrameWorx.MVC.Areas.API.Controllers
Assembly:  RainWorx.FrameWorx.MVC (in RainWorx.FrameWorx.MVC.dll) Version: 3.5

Syntax

C#
public class MediaController : AuctionWorxAPIController

The MediaController type exposes the following members.

Constructors

NameDescription
Public methodMediaController
Initializes a new instance of the MediaController class
Top
Methods

NameDescription
Public methodGetByGuid
Gets Media by GUID
Public methodGetByID
Gets Media by ID
Public methodGetLoaderResultByGUID
Gets the result of a Media Load operation by GUID and returns it.
Public methodGetLoaderResultByID
Gets the result of a Media Load operation by ID and returns it.
Public methodPost
Creates Media from Request Body. Accepts MIME multipart content (multipart/form-data) of one or more file "parts", and a single "context" string part. "context" must have a Content-Type of "text/plain", and it's Content-Disposition, "name," must be "context". Media files must have a "filename" in their Content-Dispositions ("name" can be anything).
Public methodPostFile
Creates non-image Media from Request Body. Accepts MIME multipart content (multipart/form-data) of one or more file "parts", and a single "context" string part. "context" must have a Content-Type of "text/plain", and it's Content-Disposition, "name," must be "context". Media files must have a "filename" in their Content-Dispositions ("name" can be anything).
Public methodPostFromURI
Creates Media by retrieving it from a provided URI.
Public methodPostString
Creates Media from a provided string.
Top
Extension Methods

NameDescription
Public Extension MethodToMvcHtmlString
Returns the HTML version of the ToString() output method of the specified object
(Defined by HtmlHelpers.)
Top
See Also

Reference

Copyright © 2002-2022. RainWorx Software. All rights reserved.