title: JMeter, In what way could a 20M file upload give an 500 error: "Cannot delete temporary file chunk"?
body: <p>Context: Trying to upload a file to a web application</p>
  
  <p>Let's assume I'm only using the basic options:</p>
  
  <pre><code>HTTP Request Sampler:
  
  Method: Post
  Protocol: http
  Path: /api/file/upload
  
  Follow Redirects: checked
  Use Keep-Alive: checked
  Use multipart/form-data: checked
  
  Files Upload:
     File Path: C:\Users\etc...etc
     Parameter Name: file
     MIME: image/jpeg
  </code></pre>
  
  <p>Cookies are set with Cookie Manager, Login is also set.</p>
  
  <p><strong>Uploading small files (130KB) works fine like this</strong>, Bigger files throw an error 500: "Cannot delete temporary file chunk."</p>
  
  <p>On-website upload works fine and uses resumable.js (which is also the one throwing this error I assume)</p>
  
  <p>I am assuming this is due to chunking, since that's basically the only major difference between what I have tried. Does anyone have any insight on this?</p>
  
  <p>Edit: Using the image photoGood that is "chunked"/split in 2 blocks I can also form POSTs with these parameters:</p>
  
  <pre><code>resumableIdentifier   20702285-photoGoodjpg 
  resumableFilename     photoGood.jpg 
  resumableType         image/jpeg    
  resumableRelativePath photoGood.jpg 
  resumableChunkSize    1048576   
  resumableChunkNumber  1 
  resumableTotalChunks  2 
  resumableTotalSize    1859876   
  resumableChunkSize    887520    
  </code></pre>
  
  <p>However, only the ChunkNumber 1 will be used, as in, the chunks are not joined together on the server.</p>