Skip to content

Instantly share code, notes, and snippets.

View Guiiks's full-sized avatar

Guillaume Nominé Guiiks

View GitHub Profile
// BACKEND
upload: function (req, res) {
if (req.token && req.token.id > 0 && req.param('extension')) {
aws.config.update({
accessKeyId: sails.config.custom.key,
secretAccessKey: sails.config.custom.secret,