예제 #1
0
        public async Task <IHttpActionResult> PictureUploadGet()
        {
            var request = HttpContext.Current.Request;

            var chunkExists = _flowJs.ChunkExists(Folder, request);

            if (chunkExists)
            {
                return(Ok());
            }
            return(ResponseMessage(new HttpResponseMessage(HttpStatusCode.NoContent)));
        }
예제 #2
0
        public async Task <IHttpActionResult> PictureUploadGet()
        {
            var request = HttpContext.Current.Request;

            var chunkExists = _flowJs.ChunkExists(Folder, request);

            if (chunkExists)
            {
                return(Ok());
            }
            return(NotFound());
        }
예제 #3
0
        public async Task <IHttpActionResult> PictureUploadGet()
        {
            HttpRequest request     = HttpContext.Current.Request;
            bool        chunkExists = _flowJs.ChunkExists(this._tempFolderPath, request);

            if (chunkExists == true)
            {
                return(Ok());
            }

            return(ResponseMessage(new HttpResponseMessage(HttpStatusCode.NoContent)));
        }
예제 #4
0
        public async Task <IHttpActionResult> PictureUploadGet(int id)
        {
            var request = HttpContext.Current.Request;

#if DEBUG
            Debug.WriteLine("request=" + request.ToString());
#endif
            var chunkExists = _flowJs.ChunkExists(_uploadFolder, request);
#if DEBUG
            Debug.WriteLine("chunkExists=" + chunkExists.ToString());
#endif

            if (chunkExists)
            {
                return(Ok());
            }
            ModelState.AddModelError("chunk", "error");
            return(ResponseMessage(new HttpResponseMessage(HttpStatusCode.NoContent)));
            //return BadRequest(ModelState);
        }