POST restapi/personal/fileupload/temp/v1

Upload a file to temporary storage. The file must be included in the post so we can extract it from HttpContext.Current.Request.Files (multipart/form-data). The file can only be used once, and will be deleted automatically after 24 hours (depending on FileRepo's config for temp file).

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

An object that can be used in e.g. assignment answers.

Itsolutions.Itslearning.Web.RestApi.Personal.FileUpload.UploadedTempFile
NameDescriptionTypeAdditional information
FileRepoId

string

None.

SignedFileRepoId

string

None.

Name

string

None.

MimeType

string

None.

Response Formats

application/json, text/json

Sample:
{
  "FileRepoId": "sample string 1",
  "SignedFileRepoId": "sample string 2",
  "Name": "sample string 3",
  "MimeType": "sample string 4"
}

application/xml, text/xml

Sample:
<UploadedTempFile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Itsolutions.Itslearning.Web.RestApi.Personal.FileUpload">
  <FileRepoId>sample string 1</FileRepoId>
  <MimeType>sample string 4</MimeType>
  <Name>sample string 3</Name>
  <SignedFileRepoId>sample string 2</SignedFileRepoId>
</UploadedTempFile>