forked from mtusi2026/mtusi2026lab4
fit: complete lab4, fix P1.1-P1.3, add Track 1 presigned
This commit is contained in:
+3
-1
@@ -71,8 +71,10 @@ struct DirectUpload {
|
||||
std::string content_type;
|
||||
int expected_size = 0;
|
||||
std::string expected_sha256;
|
||||
std::string s3_key; // internal
|
||||
std::string s3_key; // final key: attachments/{chat}/{id}
|
||||
std::string staging_key; // presigned PUT target: staging/{chat}/{id}
|
||||
std::string status; // pending|completed|aborted|expired
|
||||
bool overdue = false; // pending && expires_at < now(); not a column
|
||||
std::optional<std::string> attachment_id;
|
||||
std::string expires_at; // RFC3339 for JSON
|
||||
long long expires_at_epoch = 0; // for INSERT
|
||||
|
||||
Reference in New Issue
Block a user