mirror of
https://github.com/zulip/zulip.git
synced 2026-06-30 21:11:04 +08:00
This commit fixes a bug where uploading the same file a second time in the same browser session would appear to the user to stall with `Uploading [filename]...` in the composebox. This is because `tus-js-client` makes a HEAD request to check for already-uploaded files -- and, if found, that request is used in the `upload-success` callback. That left the callback with no response body to parse, to know what URL to insert. Store the `/user_uploads/...` URL in the file metadata after a successful upload, and if the fingerprint matches a previous upload, pull that URL (and filename, as it may have changed server-side) out of the previous upload's metadata. Co-authored-by: Shubham Padia <shubham@zulip.com> |
||
|---|---|---|
| .. | ||
| e2e-tests | ||
| generated | ||
| html | ||
| images | ||
| server | ||
| shared | ||
| src | ||
| styles | ||
| templates | ||
| tests | ||
| third | ||
| .browserslistrc | ||
| .gitignore | ||
| babel.config.js | ||
| debug-require-webpack-plugin.ts | ||
| debug-require.cjs | ||
| postcss.config.js | ||
| webpack.assets.json | ||
| webpack.config.ts | ||
| webpack.dev-assets.json | ||