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

            return(handler.GetBinaryToken(fieldName));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 5
0
        public static string FinalizeContent(Content content, HttpContext context)
        {
            var handler = new UploadHandler(content, context);

            return(handler.FinalizeContent(content));
        }