mirror of
https://github.com/koush/scrypted.git
synced 2026-06-11 21:30:29 +01:00
Merge branch 'main' of github.com:koush/scrypted
This commit is contained in:
@@ -59,6 +59,7 @@ export class BufferHost extends ScryptedDeviceBase implements HttpRequestHandler
|
||||
const filename = uuid + (extension ? `.${extension}` : '');
|
||||
|
||||
this.hosted.set(`/${filename}`, { data: buffer, fromMimeType, toMimeType });
|
||||
setTimeout(() => this.hosted.delete(`/${filename}`), 10 * 60 * 1000); // free this resource after 10 min.
|
||||
|
||||
return Buffer.from(`${endpoint}${filename}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user