mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:53:23 +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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user