mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-17 03:10:38 +09:00
Use attachment-size limit for company logos
This commit is contained in:
parent
4dfd862f11
commit
6eceb9b886
4 changed files with 12 additions and 18 deletions
|
|
@ -160,10 +160,6 @@ export function CompanySettings() {
|
|||
const file = event.target.files?.[0] ?? null;
|
||||
event.currentTarget.value = "";
|
||||
if (!file) return;
|
||||
if (file.size > 100 * 1024) {
|
||||
setLogoUploadError("Logo image must be 100 KB or smaller.");
|
||||
return;
|
||||
}
|
||||
setLogoUploadError(null);
|
||||
logoUploadMutation.mutate(file);
|
||||
}
|
||||
|
|
@ -276,7 +272,7 @@ export function CompanySettings() {
|
|||
<div className="flex-1 space-y-3">
|
||||
<Field
|
||||
label="Logo"
|
||||
hint="Upload a PNG, JPEG, WEBP, GIF, or SVG logo image. Maximum size: 100 KB."
|
||||
hint="Upload a PNG, JPEG, WEBP, GIF, or SVG logo image."
|
||||
>
|
||||
<div className="space-y-2">
|
||||
<input
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue