uploader.js 548 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. var AWS = require("aws-sdk")
  3. function connectAws(bucket, region, identity) {
  4. AWS.config.update({
  5. region: region,
  6. credentials: new AWS.CognitoIdentityCredentials({
  7. IdentityPoolId: identity
  8. })
  9. });
  10. var s3 = new AWS.S3({
  11. apiVersion: '2006-03-01',
  12. params: {
  13. Bucket: bucket
  14. }
  15. });
  16. return s3;
  17. }
  18. */
  19. module.exports = function() {
  20. /* var s3 = connectAws("a.tum.dk", "eu-west-1", "eu-west-1:5343270a-03fd-4856-ad07-25f1e2c78246");
  21. return s3;*/
  22. }