protected virtual string GetUploadStatus(HttpContext context) { bool isId; Guid fileId = this.GetQueryStringID(context, Constants.Upload.Id, "Get Upload Status functionality failed. Upload File Id property is not defined or is in incorrect format", out isId); FileUploadStatus status = null; if (isId) { status = UploadManager.GetStatus(fileId); } if (status == null) { return(this.HandleNullStatus(context, fileId)); } return(JsonConvert.SerializeObject(status)); }
public virtual void Cancel(Guid fileId, Guid accountId) { UploadManager.Cancel(fileId, accountId); }
protected virtual void UpdateStatus(Guid mediaItemId, Guid fileId, Guid accountId, byte progress, string error = null) { UploadManager.Update(mediaItemId, fileId, accountId, progress, error); }
public void ProcessRequest(HttpContext context) { UploadManager.HandleUploadRequest(context); }