1// META: title=FormData: FormData: Upload files in UTF-8 fetch() 2// META: script=../support/send-file-formdata-helper.js 3 "use strict"; 4 5 formDataPostFileUploadTest({ 6 fileNameSource: "ASCII", 7 fileBaseName: "file-for-upload-in-form.txt", 8 }); 9 10 formDataPostFileUploadTest({ 11 fileNameSource: "x-user-defined", 12 fileBaseName: "file-for-upload-in-form-\uF7F0\uF793\uF783\uF7A0.txt", 13 }); 14 15 formDataPostFileUploadTest({ 16 fileNameSource: "windows-1252", 17 fileBaseName: "file-for-upload-in-form-☺😂.txt", 18 }); 19 20 formDataPostFileUploadTest({ 21 fileNameSource: "JIS X 0201 and JIS X 0208", 22 fileBaseName: "file-for-upload-in-form-★星★.txt", 23 }); 24 25 formDataPostFileUploadTest({ 26 fileNameSource: "Unicode", 27 fileBaseName: "file-for-upload-in-form-☺.txt", 28 }); 29 30 formDataPostFileUploadTest({ 31 fileNameSource: "Unicode", 32 fileBaseName: `file-for-upload-in-form-${kTestChars}.txt`, 33 }); 34