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:
parent
9e4dc269a2
commit
e56d757cde
7 changed files with 158 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue