Skip to content

Commit

Permalink
Merge pull request #3982 from thematters/feat/provide-mime-in-direct-…
Browse files Browse the repository at this point in the history
…upload

feat(upload): get mime from file blob and pass to server
  • Loading branch information
gary02 authored Nov 8, 2023
2 parents 7f8d362 + 43434e3 commit 1829221
Show file tree
Hide file tree
Showing 12 changed files with 230 additions and 85 deletions.
6 changes: 3 additions & 3 deletions lang/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,6 @@
"defaultMessage": "Wallet connected",
"description": "src/components/Forms/WalletAuthForm/Connect.tsx"
},
"KuP/6B": {
"defaultMessage": "Images have a {sizeInMB} megabyte (MB) size limit."
},
"KxVlDj": {
"defaultMessage": "Settings - Blocked Users",
"description": "src/views/Me/Settings/Blocked/index.tsx"
Expand Down Expand Up @@ -1263,6 +1260,9 @@
"defaultMessage": "Unblock",
"description": "src/components/BlockUser/Button/index.tsx"
},
"bSqeXm": {
"defaultMessage": "{ext, select, gif {GIF format i} other {I} }mages have a {sizeInMB} megabyte (MB) size limit."
},
"beLe/F": {
"defaultMessage": "Broadcast"
},
Expand Down
6 changes: 3 additions & 3 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,6 @@
"defaultMessage": "Wallet connected",
"description": "src/components/Forms/WalletAuthForm/Connect.tsx"
},
"KuP/6B": {
"defaultMessage": "Images have a {sizeInMB} megabyte (MB) size limit."
},
"KxVlDj": {
"defaultMessage": "Settings - Blocked Users",
"description": "src/views/Me/Settings/Blocked/index.tsx"
Expand Down Expand Up @@ -1263,6 +1260,9 @@
"defaultMessage": "Unblock",
"description": "src/components/BlockUser/Button/index.tsx"
},
"bSqeXm": {
"defaultMessage": "{ext, select, gif {GIF format i} other {I} }mages have a {sizeInMB} megabyte (MB) size limit."
},
"beLe/F": {
"defaultMessage": "Broadcast"
},
Expand Down
6 changes: 3 additions & 3 deletions lang/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,6 @@
"defaultMessage": "钱包已绑定",
"description": "src/components/Forms/WalletAuthForm/Connect.tsx"
},
"KuP/6B": {
"defaultMessage": "图片大小不得超过 {sizeInMB}MB"
},
"KxVlDj": {
"defaultMessage": "设置 - 已屏蔽用户",
"description": "src/views/Me/Settings/Blocked/index.tsx"
Expand Down Expand Up @@ -1263,6 +1260,9 @@
"defaultMessage": "取消屏蔽",
"description": "src/components/BlockUser/Button/index.tsx"
},
"bSqeXm": {
"defaultMessage": "{ext, select, gif {GIF 格式} other {} }图片大小不得超过 {sizeInMB}MB"
},
"beLe/F": {
"defaultMessage": "广播"
},
Expand Down
6 changes: 3 additions & 3 deletions lang/zh-Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,6 @@
"defaultMessage": "錢包已綁定",
"description": "src/components/Forms/WalletAuthForm/Connect.tsx"
},
"KuP/6B": {
"defaultMessage": "圖片大小不得超過 {sizeInMB}MB"
},
"KxVlDj": {
"defaultMessage": "設定 - 已封鎖用戶",
"description": "src/views/Me/Settings/Blocked/index.tsx"
Expand Down Expand Up @@ -1263,6 +1260,9 @@
"defaultMessage": "取消封鎖",
"description": "src/components/BlockUser/Button/index.tsx"
},
"bSqeXm": {
"defaultMessage": "{ext, select, gif {GIF 格式} other {} }圖片大小不得超過 {sizeInMB}MB"
},
"beLe/F": {
"defaultMessage": "廣播"
},
Expand Down
145 changes: 136 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"embla-carousel-react": "^7.1.0",
"express": "^4.17.1",
"fastest-levenshtein": "^1.0.16",
"file-type": "^16.5.4",
"fingerprintjs2": "^2.1.4",
"firebase": "^9.22.0",
"formik": "^2.4.2",
Expand Down
Loading

1 comment on commit 1829221

@vercel
Copy link

@vercel vercel bot commented on 1829221 Nov 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.