Exemple #1
0
        public static string GetBinaryToken(Content content, HttpContext context, string fieldName = null)
        {
            var handler = new UploadHandler(content, context);

            return(handler.GetBinaryToken(fieldName));
        }
Exemple #2
0
        public static Task <string> FinalizeBlobUpload(Content content, HttpContext context, string token, long fullSize, string fieldName = null, string fileName = null)
        {
            var handler = new UploadHandler(content, context);

            return(handler.FinalizeBlobUploadAsync(token, fullSize, context.RequestAborted, fieldName, fileName));
        }
Exemple #3
0
        public static Task <string> StartBlobUploadToParent(Content content, HttpContext context, string name, string contentType, long fullSize, string fieldName = null)
        {
            var handler = new UploadHandler(content, context);

            return(handler.StartBlobUploadToParentAsync(name, contentType, fullSize, context.RequestAborted, fieldName));
        }
Exemple #4
0
        public static string StartBlobUpload(Content content, HttpContext context, long fullSize, string fieldName = null)
        {
            var handler = new UploadHandler(content, context);

            return(handler.StartBlobUpload(fullSize, fieldName));
        }
Exemple #5
0
        public static string FinalizeContent(Content content, HttpContext context)
        {
            var handler = new UploadHandler(content, context);

            return(handler.FinalizeContent(content));
        }