Created
February 27, 2020 14:59
-
-
Save xep624/b48e6b595e4136400a74e0a8c611f6aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let filename = decodeURIComponent(s3.object.key.replace(/\+/g,'%20')); | |
connection.query( | |
'INSERT INTO uploaded_files_table (`file`) VALUES ("' + filename + '")', | |
(error, results) => {} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment