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

[Feature Request]: Add the ability to set a maximum file size limit #1978

Open
anotherlab opened this issue Jan 27, 2025 · 3 comments
Open

Comments

@anotherlab
Copy link

Feature Description

It would be useful if you could configure Publii to provide a warning when you pick a file in the edit over X Mb in size. There should be a site setting that lets you set the maximum file size. The editor would check that limit when adding an image and the File Manager would check that limit when adding a file.

  • Image sizes should be optimized for fast loading.
  • Publii can fail to do a sync when using Git Repository when there are large files.
  • Some hosts may have limits on file sizes, depending on the tier being used.
@raramuridesign
Copy link

This is actually a good idea, if you are using Cloudflare pages, the max file size is 25MB and the total files is 20.000.
So these hard limits would be useful.

In fact having a summary of total generated files would be neat as well.
Showing previous history in total files generated.

@dziudek

@anotherlab
Copy link
Author

That 25 MB limit with Cloudflare pages is in part what prompted this. That and synching with the Git Repository server setting was failing with a vague timeout error message.

@raramuridesign
Copy link

Having some metrics of file usage would really be great

  • total files
  • x files larger than 5mb
  • difference between last sync and current sync

Hope this will be considered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants