Skip to content

Commit

Permalink
fix: add whitespace to generateV4SignedPolicy (#1136)
Browse files Browse the repository at this point in the history
* fix: add whitespace to generateV4SignedPolicy

* fix: revert break for hidden fields.

* fix

Co-authored-by: Jonathan Lui <jonathanlui@google.com>
  • Loading branch information
frankyn and jkwlui committed Mar 30, 2020
1 parent d119ace commit dcee78b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions samples/generateV4SignedPolicy.js
Expand Up @@ -56,8 +56,9 @@ function main(bucketName = 'my-bucket', filename = 'test.txt') {
const value = response.fields[name];
output += ` <input name='${name}' value='${value}' type='hidden'/>\n`;
}
output += " <input type='file' name='file'/>\n";
output += " <input type='submit' value='Upload File' name='submit'/>\n";
output += " <input type='file' name='file'/><br />\n";
output +=
" <input type='submit' value='Upload File' name='submit'/><br />\n";
output += '</form>';

console.log(output);
Expand Down

0 comments on commit dcee78b

Please sign in to comment.