1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-03 17:59:28 +02:00

Add an app for resizing images. Still needs rate limiting, and still trying to decide how to pass the correct URL to the app.

This commit is contained in:
Simo Kinnunen 2014-05-20 19:00:53 +09:00
parent 9e4dc269a2
commit e56d757cde
7 changed files with 158 additions and 1 deletions

View file

@ -14,14 +14,18 @@ util.inherits(Storage, events.EventEmitter)
Storage.prototype.store = function(file) {
var id = uuid.v4()
this.set(id, file)
return id
}
Storage.prototype.set = function(id, file) {
this.files[id] = {
timeout: 600000
, lastActivity: Date.now()
, data: file
}
return id
return file
}
Storage.prototype.remove = function(id) {