added environment variable for expire time
This commit is contained in:
parent
fa1f0208a4
commit
4cb040d70d
6 changed files with 12 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
/* global MAXFILESIZE */
|
||||
/* global MAXFILESIZE EXPIRE_SECONDS */
|
||||
require('./common');
|
||||
const FileSender = require('./fileSender');
|
||||
const {
|
||||
|
@ -256,7 +256,7 @@ $(document).ready(function() {
|
|||
const totalTime = endTime - startTime;
|
||||
const uploadTime = endTime - uploadStart;
|
||||
const uploadSpeed = file.size / (uploadTime / 1000);
|
||||
const expiration = 24 * 60 * 60 * 1000; //will eventually come from a field
|
||||
const expiration = EXPIRE_SECONDS * 1000;
|
||||
|
||||
// record upload-stopped (completed) by sender
|
||||
sendEvent('sender', 'upload-stopped', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue