Comparison

plugins/mod_http_file_share.lua @ 11503:7adda14945ad

mod_http_file_share: Include expiry time of the upload itself in token Lets an external upload service know this so it can do expiry itself. Could possibly have been calculated based on the token expiry or issuance time, explicit > implicit.
author Kim Alvefur <zash@zash.se>
date Mon, 05 Apr 2021 17:21:18 +0200
parent 11502:8fd760c04cdf
child 11564:60e31c9ece57
comparison
equal deleted inserted replaced
11502:8fd760c04cdf 11503:7adda14945ad
140 iat = now; 140 iat = now;
141 exp = now+300; 141 exp = now+300;
142 142
143 -- slot properties 143 -- slot properties
144 slot = slot; 144 slot = slot;
145 expires = expiry >= 0 and (now+expiry) or nil;
145 -- file properties 146 -- file properties
146 filename = filename; 147 filename = filename;
147 filesize = filesize; 148 filesize = filesize;
148 filetype = filetype; 149 filetype = filetype;
149 }); 150 });