Feature Suggestion: Allow for "max size" parameter for images (or files)

Open
#346 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
typescript
Domain
full-stack

Research direction

The issue names no files, so begin by locating where media uploads are accepted and whether a media configuration already exists in the project. The open question is whether the limit belongs to images only or to all files, and no maintainer has answered in 271 days. Treat the work as done only after the maintainers agree on that scope and an oversized upload is rejected with a test.

Written by the indexing model from the issue text.

Description

One thing I think could be useful for when you allow others to upload images to your repository, would be to validate the size of the images they upload, to ensure they don't upload very large files which could eventually make the codebase very large.

I can take a look at adding this if this would be worthwhile?

Would it possibly make more sense to add this to a media config so that it works across files and images? I've not had a use-case for uploading anything but images, but can see this making sense to add it to both.

Dominant language
TypeScript
Stars
4.1k
Forks
564
Avg merge
8m
Merged PRs (30d)
5

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hunvreus/pagescms

All issues in hunvreus/pagescms

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.