Note that there are some explanatory texts on larger screens.

plurals
  1. POError when attempting to parse xhr response text For Long Size File
    text
    copied!<p>I am using the Jquery fineUploader for Upload the file I am getting </p> <p><strong>404 - File or directory not found.</strong> </p> <p>when uploading the file more than 30MB for Small files below than 30MB works fine.</p> <p>In fire bug the error shows:</p> <pre><code>[FineUploader] Error when attempting to parse xhr response text (SyntaxError: JSON.parse: unexpected character) [FineUploader] Caught exception in 'onValidate' callback -TypeError: file is undefined log(a="[FineUploader] Caught e...rror: file is undefined", b="error") </code></pre> <p><img src="https://i.stack.imgur.com/eLymI.png" alt="enter image description here"></p> <p>below is my handler code:</p> <pre><code> public void ProcessRequest(HttpContext context) { string directoryID = context.Request["dId"]; var response = new AjaxResponse { ResponseData = "" }; if (!string.IsNullOrEmpty(directoryID)) { int spaceID = 0; int dirID = Convert.ToInt32(directoryID); string directoryPhysicalPath = "D:\\Files\\"; string fileName = context.Request["qqfile"]; string saveLocation = Path.Combine(directoryPhysicalPath, fileUniqueName); if (!Directory.Exists(directoryPhysicalPath)) { Directory.CreateDirectory(directoryPhysicalPath); } DateTime currentDateTime = DateTime.UtcNow; var file = new File(); try { int bytesRead = 0; Stream inputStream = context.Request.InputStream; byte[] buffer = new byte[inputStream.Length]; try { using (var fileStream = new FileStream(saveLocation, FileMode.Create)) { do { bytesRead = context.Request.InputStream.Read(buffer, 0, buffer.Length); fileStream.Write(buffer, 0, bytesRead); } while (bytesRead &gt; 0); } file = new File { FileName = fileName }; //Add to DB Here } } catch (PathTooLongException ex) { response.IsError = true; response.ResponseMessage = ex.Message; } File f = //Get data from DB here; response.ResponseData = f; context.Response.Write(new JavaScriptSerializer().Serialize(response)); } } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload