mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-21 16:15:24 -04:00
[PR #347] [CLOSED] Adds some rules to exclude invalid images #329
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Drop-OSS/drop/pull/347
Author: @Pacodastre
Created: 2/8/2026
Status: ❌ Closed
Base:
develop← Head:only-accept-valid-images-for-upload📝 Commits (1)
3eaaf1cAdds some rules to exclude invalid images📊 Changes
11 files changed (+116 additions, -32 deletions)
View changed files
📝
components/GameEditor/Metadata.vue(+14 -4)📝
components/Modal/UploadFile.vue(+6 -1)📝
components/NewsArticleCreateButton.vue(+6 -2)📝
pnpm-lock.yaml(+5 -5)📝
server/api/v1/admin/company/[id]/banner.post.ts(+17 -4)📝
server/api/v1/admin/company/[id]/icon.post.ts(+12 -3)📝
server/api/v1/admin/game/[id]/metadata.post.ts(+5 -3)📝
server/api/v1/admin/game/image/index.post.ts(+4 -2)📝
server/api/v1/admin/news/index.post.ts(+9 -7)📝
server/api/v1/admin/settings/logo.post.ts(+9 -1)➕
server/internal/mimetypes.ts(+29 -0)📄 Description
I changed some
statusMessagetomessagein the files I touched. Let me know if I shouldn't have done that.It shows an error message when a file is not a valid image
I fixed a minor bug in the game logo upload. If an invalid image was selected, then saved. Upon reopening the modal to upload the logo, the image used to appear broken as it was trying to render the previous invalid image. This is fixed by not updating the logo if it's not valid.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
[PR #347] Adds some rules to exclude invalid imagesto [PR #347] [CLOSED] Adds some rules to exclude invalid images