Skip to content

Instantly share code, notes, and snippets.

@xep624
Created February 27, 2020 14:59
Show Gist options
  • Save xep624/b48e6b595e4136400a74e0a8c611f6aa to your computer and use it in GitHub Desktop.
Save xep624/b48e6b595e4136400a74e0a8c611f6aa to your computer and use it in GitHub Desktop.
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