$path from line 64 only exists for chunked uploads.