Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

投稿フォームにファイルを17個以上添付できてしまうがフロント側はエラーとならない #15118

Open
1 task
samunohito opened this issue Dec 10, 2024 · 0 comments · May be fixed by #15126
Labels
⚠️bug? This might be a bug [Feat] Note(post) 'Note' related Issue. Focus on the post form and DB registration process. packages/frontend Client side specific issue/PR

Comments

@samunohito
Copy link
Member

💡 Summary

(バグか要望かで悩んだけどバグで)

fileIds: {
type: 'array',
uniqueItems: true,
minItems: 1,
maxItems: 16,
items: { type: 'string', format: 'misskey:id' },
},

バックエンド側(上記)では、ノート投稿時に添付ファイルとして設定可能なファイルの数は最大で16個であると制限されています。
しかし、フロントエンド側のノート投稿フォームには17個以上設定できてしまいます。

🥰 Expected Behavior

17個以上添付された時はエラーを表示して16個までに留め、それ以上はエラーを表示したほうが親切かと思います。

🤬 Actual Behavior

何も表示されない

📝 Steps to Reproduce

投稿フォームにファイルを17個添付して投稿ボタンを押す

💻 Frontend Environment

* Model and OS of the device(s): any
* Browser: any
* Server URL: any
* Misskey: any

🛰 Backend Environment (for server admin)

-

Do you want to address this bug yourself?

  • Yes, I will patch the bug myself and send a pull request
@samunohito samunohito added [Feat] Note(post) 'Note' related Issue. Focus on the post form and DB registration process. packages/frontend Client side specific issue/PR ⚠️bug? This might be a bug labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️bug? This might be a bug [Feat] Note(post) 'Note' related Issue. Focus on the post form and DB registration process. packages/frontend Client side specific issue/PR
Projects
1 participant