You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
client.putStream readableStream, "Path/With/Some spaces in it.ext", headers, callback
Two things would happen:
The PUT wouldn't actually put anything
The callback would be called with no error and the response would look totally valid.
I changed client.js' encodeSpecialCharacters to include a single space in the regex and now it works fine and dandy.
OLD:
function encodeSpecialCharacters(filename) {
// Note: these characters are valid in URIs, but S3 does not like them for
// some reason.
return filename.replace(/[!'()*]/g, function (char) {
return '%' + char.charCodeAt(0).toString(16);
});
}
NEW:
function encodeSpecialCharacters(filename) {
// Note: these characters are valid in URIs, but S3 does not like them for
// some reason.
return filename.replace(/[!'()* ]/g, function (char) {
return '%' + char.charCodeAt(0).toString(16);
});
}
The text was updated successfully, but these errors were encountered:
I tried something equivalent to
Two things would happen:
I changed client.js' encodeSpecialCharacters to include a single space in the regex and now it works fine and dandy.
OLD:
NEW:
The text was updated successfully, but these errors were encountered: