originalname meta with utf-8 symbols
See original GitHub issueThis code
var Minio = require('minio')
var minioClient = new Minio.Client({
endPoint: 'play.min.io',
port: 9000,
useSSL: true,
accessKey: 'Q3AM3UQ867SPQQA43P2F',
secretKey: 'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG'
});
var meta = { originalname: 'тест.pdf' };
minioClient.putObject('test', 'test.pdf', Buffer.from(''), 0, meta)
throws error
_http_outgoing.js:464
throw err;
^
TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["x-amz-meta-originalname"]
at ClientRequest.setHeader (_http_outgoing.js:473:3)
at new ClientRequest (_http_client.js:194:14)
at Object.request (https.js:289:10)
at _makeRequest (C:\Projects\aclub-bpm\node_modules\minio\dist\main\minio.js:501:36)
at DestroyableTransform.<anonymous> (C:\Projects\aclub-bpm\node_modules\minio\dist\main\minio.js:562:11)
at DestroyableTransform.emit (events.js:203:15)
at endReadableNT (C:\Projects\aclub-bpm\node_modules\readable-stream\lib\_stream_readable.js:1010:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
HTML meta charset Attribute - W3Schools
The charset attribute specifies the character encoding for the HTML document. The HTML5 specification encourages web developers to use the UTF-8 character set, ......
Read more >Why is < meta charset="utf-8" > important?
utf-8 is a specific character encoding. In other words, <meta charset="utf-8"> tells the browser to use the utf-8 character ...
Read more >Use charset `utf-8` | webhint documentation
meta -charset-utf-8 checks if the page explicitly declares the character encoding as ... The character encoding should be specified for every HTML page, ......
Read more >studiomanzoesimonetti.it pubg name generator
The unicode standard contains many thousands of symbols and special characters, and amongst these thousands are quite a few characters that look like...
Read more >What is <meta charset="utf-8">? - Stack Overflow
That meta tag basically specifies which character set a website is written with. Here is a definition of UTF-8: UTF-8 (U from Universal ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We can close this issue @kannappanr
yah for some reason it doesn’t get into the callback , feel free to try it yourself as well~
just add to your
key
+ “\n”