mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-16 17:05:17 +00:00
Update profile-form.tsx
This commit is contained in:
@@ -333,10 +333,10 @@ export const ProfileForm = () => {
|
|||||||
onChange={async (e) => {
|
onChange={async (e) => {
|
||||||
const file = e.target.files?.[0];
|
const file = e.target.files?.[0];
|
||||||
if (file) {
|
if (file) {
|
||||||
// max file size 5mb
|
// max file size 2mb
|
||||||
if (file.size > 5 * 1024 * 1024) {
|
if (file.size > 2 * 1024 * 1024) {
|
||||||
toast.error(
|
toast.error(
|
||||||
"Image size must be less than 5MB",
|
"Image size must be less than 2MB",
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user