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))); }
public async Task <IHttpActionResult> PictureUploadGet() { var request = HttpContext.Current.Request; var chunkExists = _flowJs.ChunkExists(Folder, request); if (chunkExists) { return(Ok()); } return(NotFound()); }
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))); }
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); }