Hapi doesn't detect uploaded file name apostrophes
Request headers:
Content-Length:283430
Content-Type:multipart/form-data; boundary=----WebKitFormBoundaryCM4DsKeBSaABGqvx
Request payload:
------WebKitFormBoundaryCM4DsKeBSaABGqvx
Content-Disposition: form-data; name="file"; filename="Sol'nyi_kontsiert_L'ONE_20052017_2000_127500278149.Pdf"
Content-Type: application/pdf
------WebKitFormBoundaryCM4DsKeBSaABGqvx--
request.payload.file.hapi:
{ filename: '',
headers:
{ 'content-disposition': 'form-data; name="file"; filename="Sol\'nyi_kontsiert_L\'ONE_20052017_2000_127500278149.Pdf"',
'content-type': 'application/pdf' } }
The filename is empty ('')
The same request for the same file but without the apostrophes in the name works just fine:
Request headers:
Content-Length:283428
Content-Type:multipart/form-data; boundary=----WebKitFormBoundarywle0JFttRBnW73N3
Cookie:tt_uuid=f832069e-c550-4637-bd0f-09d7adce4a4d; tt_uid=1; io=wmhKrRAnDwsOxihpAAAB
Request Payload:
------WebKitFormBoundarywle0JFttRBnW73N3
Content-Disposition: form-data; name="file"; filename="Solnyi_kontsiert_LONE_20052017_2000_127500278149.Pdf"
Content-Type: application/pdf
------WebKitFormBoundarywle0JFttRBnW73N3--
request.payload.file.hapi:
{ filename: 'Solnyi_kontsiert_LONE_20052017_2000_127500278149.Pdf',
headers:
{ 'content-disposition': 'form-data; name="file"; filename="Solnyi_kontsiert_LONE_20052017_2000_127500278149.Pdf"',
'content-type': 'application/pdf' } }
HAPI version 16.1.0
node version v7.2.1
Hapi doesn't detect uploaded file name apostrophes
Request headers:
Request payload:
request.payload.file.hapi:
The filename is empty ('')
The same request for the same file but without the apostrophes in the name works just fine:
Request headers:
Request Payload:
request.payload.file.hapi:
HAPI version 16.1.0
node version v7.2.1