You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: use timestamp+filename for bulk message request ID (#903)
* refactor: use timestamp+filename for bulk message request ID
- Generate request ID as bulk-{base62_timestamp}-{truncated_filename}
- Encode unix timestamp as base62 for minimal length (~6 chars)
- Truncate filename to max 32 chars preserving extension
- Remove fileType return value from ValidateStore
- Simplify frontend cleanName() to just strip 'bulk-' prefix
- Stay on bulk-messages page after upload instead of redirecting
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: address PR review comments
- Add 4-char random base62 suffix to prevent same-second collisions
- Sanitize filename by stripping non-alphanumeric chars (except . and -)
- Restore backward-compat in cleanName for old bulk-csv-/bulk-xls- entries
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: allow space character in sanitizeFilename
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ctxLogger.Error(stacktrace.NewError(fmt.Sprintf("cannot parse file [%s] for user [%s] with content type [%s]", header.Filename, user.ID, header.Header.Get("Content-Type"))))
110
108
111
109
result:= url.Values{}
112
110
result.Add("document", fmt.Sprintf("The file [%s] is not a valid CSV or Excel file.", header.Filename))
0 commit comments