Redmine attachment size and file type limits

Redmine attachment limits combine application settings, proxy body limits, thumbnail tooling and storage location. This page explains how to set each one for a production Redmine.

On this page

Setting Redmine attachment size and file type limits before users upload

Upload limits on a production Redmine are set in several layers: Redmine's own settings, the reverse proxy in front of it, the file handling tools that process uploads, and the storage path where files land. Each layer enforces its own limit, and the strictest one wins, so a generous setting in Redmine does nothing if the proxy rejects the request first, and a permissive proxy does not protect you if Redmine accepts anything. Settle these values together, before the instance opens to members who can attach files to issues and wiki pages.

Teams need this decision early because any member who can edit an issue or wiki page can usually attach files, and the risk grows with the size of the user base and the number of external collaborators on shared projects. Unbounded uploads can fill the disk, slow the application server, and hand users a way to deliver executable or script content to other members. Write the policy down first: the maximum size per file, the extensions you allow or block, and who may see uploaded content. Then confirm each layer against it in a staging copy, using a file just over the limit and a file with a blocked extension, and record the results.

Two layers need extra attention. Thumbnail generation depends on external tools, and Redmine's security advisories record a critical PostScript execution issue fixed in thumbnail generation in 6.1.3, 6.0.10 and 5.1.13, so the tools installed on your server and their versions belong in the patch plan. Also confirm with your team where attachments are stored, and keep that path outside the public web root so uploaded files are never served directly by the web server. Check the exact settings for your Redmine version against the Redmine security advisories page before you change production.

Which layers decide what a user can upload

An upload passes through four places before it reaches disk, and each one enforces its own limit. Redmine's attachment settings, the reverse proxy, the optional conversion tools and the storage directory must agree, or users will see errors that are hard to trace back to their source.

Redmine attachment settings

Redmine enforces the maximum attachment size and the allowed or disallowed extensions from its administration settings for attachments. This is the only layer that applies the file type rules, so the proxy and the tools can only narrow what it allows. After every upgrade and after installing any plugin that touches uploads, confirm these values still hold. Test with a file just over the size limit and with a blocked extension, and record the chosen values so the other layers can be set to match.

Reverse proxy body limit

A reverse proxy such as nginx or Apache rejects oversized request bodies before Redmine receives them. The relevant settings are usually client_max_body_size in nginx and LimitRequestBody in Apache. If this limit is lower than Redmine's maximum, users get a generic gateway error page and no Redmine message. Allow for multipart encoding overhead so a file at the exact Redmine maximum still uploads.

Thumbnail and conversion tools

ImageMagick, Ghostscript and Pandoc are optional components that Redmine can call to generate thumbnails and previews. They parse content that users upload, so they add risk beyond the size and extension rules. Redmine fixed a critical PostScript execution issue in thumbnail generation in 6.1.3, 6.0.10 and 5.1.13. Keep these tools patched, review the ImageMagick policy for PostScript and PDF formats, and disable the tools you do not need.

Redmine advisories

Attachment storage directory

Redmine writes attachments to a files directory inside the application by default, and the path can be changed in configuration.yml. The web server should never serve this directory directly, and the Redmine service user needs write access to it. Confirm that the volume has enough free space for expected uploads, because a full disk causes failed uploads. Back up this directory together with the database, since attachment records alone do not restore file content.

Confirming values in your install

Check the administration attachment settings in the Redmine interface, then read the proxy configuration on the live host with nginx -T or the Apache configuration files. Confirm the storage path in configuration.yml. For the tools, run convert -version, gs --version and pandoc --version as the Redmine service user, since the same binaries may differ from the ones on your shell path. Write the results down for the change record.

Configuration options and when each fits

This table compares the five upload controls available for Redmine attachments, from size caps to storage location. Read each row for when the control fits, what it breaks for legitimate users, and what to check in the release notes for your Redmine version before relying on it. No single control is sufficient on its own, so most deployments combine two or three.

OptionWhen it fitsWhat it breaksWhat to confirm
Maximum attachment sizeStopping oversized uploads from filling storage and slowing the application serverLegitimate large files such as CAD drawings, video, or full test datasets users need to attach to issuesThe size setting name and default in your version's configuration documentation and whether the proxy limit matches it
Allowed extension listTeams with a narrow, known set of file types, such as documents and images for a service deskUsers who need formats outside the list, including engineering or vendor-specific file types, and files without extensionsHow the list is matched in your version, whether it is case sensitive, and whether it applies to all upload paths
Disallowed extension listEnvironments where most file types are acceptable but executables, scripts and archives must be blockedAnything not named in the list, so new or unusual dangerous types pass unless you keep the list currentYour version's default blocked types and any changes in recent security advisories
Proxy body limitKeeping oversized requests from reaching Redmine at all, which saves application server resourcesUploads that pass Redmine's own limit but fail at the proxy with a generic error, confusing users and support staffThe proxy's directive for request body size, its default, and that it is set at least as high as the Redmine limit
Disabling thumbnail generationReducing exposure to image and document conversion libraries that process untrusted filesImage previews in issues and wiki pages, and users' expectations of inline viewingThe advisory history for thumbnail and conversion tools, and the setting that turns previews off in your release
Storage outside the web rootKeeping uploaded files from being served directly by the web server and simplifying backups and permissionsOperations that assume files sit in the default directory, such as older scripts, some backup tools and ad hoc restoresThe attachments directory setting, file permissions for the Redmine user, and the upgrade guide steps for moving uploads

Setting upload limits in order

This sequence sets upload limits from the outside in: first deciding what users need to attach, then configuring Redmine, the reverse proxy, thumbnail tooling and storage, and finally proving that the limits behave as intended. Each step ends with a check so the result can be confirmed before users depend on it.

  1. Inventory the file types users need

    Before changing any setting, the project owner and a representative group of users list the file types that appear in real issues, such as logs, screenshots, PDFs, spreadsheets and archives, and the largest files they have needed to attach. Security or compliance staff review the list against the organization's data handling rules and flag types that should never enter the tracker, such as executables or scripts. The output is a short written list of allowed types, blocked types and the size expectation for each group. You know this step is done when every type on the list has an owner who agreed to it in writing.

  2. Set the Redmine size and extension policy

    An administrator sets the maximum attachment size and the allowed or disallowed extensions in Redmine's administration settings, using the values from the inventory. Confirm the setting names and where they live in the version you run, because the exact options depend on the release and should be checked against the Redmine documentation for that line before you change anything in production. Record the values in your change log together with the person who approved them. The check is that a test user can see the new values on the administration page and that the change is recorded.

  3. Align the reverse proxy body limit

    The reverse proxy or load balancer in front of Redmine has its own request body limit, and an upload larger than that limit is rejected before Redmine sees it. The web server or proxy administrator sets the body limit to match the Redmine maximum, with a small allowance for multipart overhead, and confirms that the same value applies on every path that accepts uploads. Mismatched limits often produce generic server errors instead of Redmine's own message, which is why this step must follow the Redmine setting. The check is a test upload just above the Redmine limit, which should fail with a clear message, and a test upload just below it, which should succeed.

  4. Review thumbnail tooling and the PostScript advisory

    Redmine can generate thumbnails with optional tools such as ImageMagick and Ghostscript, and those tools process file formats that are a common attack surface. Redmine fixed a critical PostScript execution issue in thumbnail generation in versions 6.1.3, 6.0.10 and 5.1.13, so the platform team confirms the running version is at or above the fixed release for its branch and reads the advisory on the Redmine security advisories page. If thumbnail generation is not needed, it can be turned off or the optional tools removed from the host. The check is a recorded version number that matches or exceeds the fixed release, and a documented decision about whether thumbnails stay enabled.

  5. Move attachment storage outside the web root

    The attachment directory is moved to a path that the web server does not serve directly, so uploaded files are only delivered through Redmine's access checks. The system administrator sets ownership so that only the account running Redmine can write to the directory, removes execute permissions from it, and confirms the path in the Redmine configuration. Existing attachments are moved with the database backup taken before the change, so links and file records stay consistent. The check is that a direct web request for a stored file path returns no content, while the same file downloads correctly through its issue for an authorized user.

  6. Test accepted and rejected uploads

    A tester with a non-administrator account runs a fixed set of uploads: an allowed type under the size limit, an allowed type over the limit, a blocked extension, a file with a permitted extension but unexpected content, and a file with a double extension. Each result is recorded with the message the user sees and the entry in the Redmine log. Security staff confirm that rejected files never reach the storage directory. The check is a completed test table where every case matches the policy written in the inventory.

  7. Confirm error messages and document the policy

    The team confirms that users see understandable messages for size and extension rejections from Redmine, and that proxy-level rejections are explained in the support guidance so help desk staff can recognize them. The final policy, the reverse proxy value, the thumbnail decision and the test results are stored with the Redmine runbook and shared with the people who will review future changes. Ask any implementation partner to deliver this record as part of the written scope. The check is a runbook entry that a new administrator can follow without asking the original team for context.

Why thumbnail generation changes the risk

An attachment is not only stored in Redmine, it can also be processed. When thumbnail generation is enabled, Redmine hands uploaded files to external conversion tools so users can see previews in issues and wikis. Each of those tools parses file formats that are complex and historically hard to handle safely. That means a file that passes your size and extension rules can still reach code that runs on your server. The size and extension limits in this topic reduce what can arrive, but preview generation decides how much of each accepted file gets interpreted, so it belongs in the same risk review.

Redmine's security advisories record a critical PostScript execution issue in thumbnail generation, fixed in 6.1.3, 6.0.10 and 5.1.13. The fix matters because it shows that the preview path itself has been an attack route, and that the fixed versions are the only ones that carry the correction. A server still running an earlier patch level on any of these branches should be treated as exposed until it is upgraded. Check the Redmine security advisories page for the advisory text and the exact affected range before you rely on this summary, and confirm the installed version with your own administration tools.

Patching is not the only option. If your users do not need previews of uploaded files, or your converter tools are not on a patched release, disabling or restricting preview generation removes the processing step entirely. Confirm the thumbnail and conversion settings in your version and the optional components installed on the host, such as ImageMagick or Ghostscript, because each one adds its own parser. Record the decision, the version you run and the date you last checked the advisories, so that the choice can be revisited when the converters or Redmine change.

How an upload travels from the browser to storage

An attachment starts in the user's browser and first meets the reverse proxy, which enforces the body size limit before Redmine sees any bytes. Redmine then checks the file size and extension against its own settings and rejects anything that fails, so nothing reaches disk. Accepted files are written to attachment storage outside the web root, and if thumbnail generation is enabled, an external tool such as ImageMagick reads the file, which is where the thumbnail risk sits. Check each stop point separately, because a limit set in one layer does not change the others.

Upload path with the proxy, Redmine and storage checks, where rejected uploads stop.

Questions teams ask before changing upload limits

Is an extension blocklist enough to stop risky uploads?

No. A blocklist only stops the extensions someone thought to list, and a renamed file or a double extension can get past it. Treat the extension check as one layer among several. Pair it with a size limit, a fixed allowlist of types the business needs, server-side content checks where available, and a rule that uploads are served as downloads rather than rendered in the browser. Thumbnail generation also deserves its own review, because a file that is harmless to store can still be processed by a converter in ways you did not intend. Ask your team to test renamed files, archives and image formats your users actually send.

How much effort does changing upload limits take internally?

The configuration change itself is small. The effort sits in deciding the policy, checking every layer that enforces a limit, and testing. Your team needs to locate the Redmine setting, the reverse proxy body limit, any load balancer or ingress limit, and the application server timeout, then confirm they agree. Internal teams usually lose time on the policy discussion and on test cases for file types. A partner typically brings a checklist and a test set, which shortens that work, but the business still has to decide which file types it needs. Ask any provider for the written scope, the layers they will check, and what they will test.

Do existing attachments change when we tighten the limits?

Usually not. Tightening a limit or changing an extension rule governs new uploads, so files already stored in Redmine stay where they are and remain downloadable. The exception is anything you choose to clean up: removing or quarantining existing files is a separate project that needs a data owner decision, a backup, and a record of what was removed. Also check whether your policy changes how old files are previewed or processed, since thumbnails for existing images may be regenerated after an upgrade or cache clear. Confirm this behavior in a staging copy before you touch production data.

How should teams handle large engineering files in Redmine?

Redmine is built for issue context, not for storing large binaries, so the usual answer is to keep the attachment limit moderate and move large artifacts to a system designed for them. Build logs, firmware images, CAD files and dataset exports are common examples. Link to them from the issue, keep access controls on the target system aligned with the project's roles, and record the link so the issue remains useful after the artifact moves. If you do raise the limit, account for disk growth in the attachments directory and in backups, which both scale with what users upload.

Does a change to upload limits need a Redmine restart?

Settings changed through the Redmine administration pages take effect without a full redeploy, but the layers in front of Redmine often do not. Reverse proxies such as Nginx or Apache, load balancers and Kubernetes ingress controllers each have their own body size limit, and they usually need a reload. Application server settings and any file-type configuration in your deployment may require a restart of the application processes. Plan the change as a short maintenance window, apply it in staging first, and verify with a test upload just over the new limit and another just under it.

What must our team provide before a partner can change upload limits?

A partner needs a written policy and access to the systems that enforce it. Prepare the list of file types your users need, the maximum size you will accept per file, and the owners who approve exceptions. Provide read access to the Redmine configuration, the reverse proxy and ingress definitions, and the storage location for attachments. Name a contact who can approve a test window and a staging environment that matches production as closely as practical. Also provide recent backups or confirm your backup process, because any change that touches stored files should be reversible. Ask the provider to confirm which of these items are in scope before work starts.

What drives the cost of a Redmine upload policy project?

The cost comes from people's time, not licenses, since Redmine itself is free under GPL v2. The main drivers are how many enforcement layers exist, how many file types need testing, whether thumbnail or preview processing must be reviewed, and whether the work includes storage changes outside the web root. One-time costs cover the policy design, configuration and testing. Recurring costs appear when new file types are requested or when upgrades and security releases require retesting. Ask any provider for a quote that lists each layer, each test set and each recurring review, so you can compare it with your internal estimate.

Are thumbnail generation risks a reason to disable previews?

They are a reason to review them carefully. Redmine can generate thumbnails for some attachments, and optional converters such as ImageMagick and Ghostscript sit behind that work. Redmine fixed a critical PostScript execution issue in thumbnail generation in versions 6.1.3, 6.0.10 and 5.1.13, so the first step is to run a supported release on a line that still receives security fixes. Then decide, based on your file types, whether previews are worth the exposure. Disabling them or restricting the converters you install is a reasonable option, and your security team should confirm the choice against the Redmine security advisories.

Security and operational considerations for uploads

A size limit and an extension list stop only part of the problem. The risks below come from how Redmine stores, renders and serves what users upload, and from how the surrounding stack handles those files over time. Each card names one risk and one control to check in your own environment.

Extension spoofing by content type

A blocked extension is easy to hide: a user renames a script or HTML file to an allowed name, or relies on a browser or server that trusts the declared content type. Check the extension list against the actual file content where your stack allows it, and do not treat the client-supplied MIME type as proof of what a file is. Test a renamed executable and a renamed HTML file on a staging instance to see what Redmine accepts and how it serves them.

Thumbnail tool exposure

Redmine can call optional tools such as ImageMagick and Ghostscript to build previews, and those tools parse complex formats that have had security defects. Redmine fixed a critical PostScript execution issue in thumbnail generation in 6.1.3, 6.0.10 and 5.1.13, so the patch level matters as much as the upload policy. Confirm which converters are installed, keep them patched, and disable preview generation for formats you do not need.

Security advisories

Executable files served from the web root

If attachments are stored under the public directory, a web server may serve an uploaded file directly, bypassing Redmine's access checks and sometimes executing it. Store attachments outside the web root, and make sure the web server does not map the attachment directory to a handler that runs scripts. Verify by requesting a stored attachment URL directly, without a session, and confirming it returns an error or a download rather than rendered content.

Disk growth and attachment backups

Attachments usually grow faster than the database, and a loose size limit multiplies the cost of every backup and restore. Set the maximum size with your storage budget in mind, monitor the files directory, and back up the database and the files directory together so that issues never point at missing files. Ask your team to confirm how long backups are retained and whether restores have been tested against the attachment store.

Log and error exposure

Upload errors, proxy rejections and stack traces can reveal file paths, storage layout and filenames that users should not see. Review production error pages and proxy error responses so that rejected uploads return a generic message. Also check that logs containing request details are access controlled and rotated, since filenames in logs can carry sensitive project information.

Permission drift after upgrades

Upgrades, plugin reinstalls and redeployments can change the owner or mode of the attachment directory, or restore an older proxy configuration that drops the body limit. Record the expected ownership and permissions for the files directory, the upload size setting and the proxy limit, then recheck all three after each upgrade. Ask whether your upgrade runbook includes these checks as explicit steps.

What a scoped upload review covers

A scoped upload review starts by recording the current limits at every layer that touches an upload, because a Redmine attachment passes through more than one component before it reaches storage. The review covers the reverse proxy or load balancer body limit, the application server and Redmine's own attachment size setting, the allowed and disallowed extension rules, the thumbnail and conversion helpers installed on the host, and the attachment storage path and its permissions. Each layer is checked for the value it enforces today, so the reader can see where a limit is set higher than the layer behind it, or where no limit is set at all. The exact settings depend on your deployment method and web stack, so the engagement confirms them in your environment rather than assuming a default.

The second part of the review turns business needs into a file type policy that you approve. DeployOpen asks which file types teams genuinely exchange on issues, such as logs, screenshots, spreadsheets or design files, and which types have no business purpose and should be refused. The reader makes the policy decision, including whether any file types need an exception, who may request one and how exceptions are recorded. Test uploads then run against the agreed policy from ordinary user accounts, covering oversized files, renamed executables, archives, and image or document files that trigger thumbnail generation. Findings are written up with the setting that produced each result, and the agreed changes are applied and retested before the engagement closes.

Scope, depth and cost depend on the written scope, which is agreed before work starts. Ask for a list of the layers in scope, the number of environments covered, whether the test uploads run against staging or production, and whether the retest is included in the fixed price. Confirm with your own team which helper tools are installed on the host and whether any plugin changes how attachments are stored, since those affect both the test cases and the effort. Your organization owns the final policy, and DeployOpen's role is to make the current behavior visible, test it and document the result.

How DeployOpen scopes and supports Redmine upload controls

DeployOpen plans, builds, documents and supports attachment size and file type limits for self-hosted Redmine inside your own infrastructure. Each engagement starts from a written scope that covers the Redmine server, the reverse proxy in front of it and where attachments are stored, so limits hold at every layer that accepts uploads.

How we scope

  • Inventory every path that accepts uploads: issues, wiki pages, documents, email-created issues and API calls.
  • Agree the maximum attachment size, allowed and blocked extensions, and which roles may upload at all.
  • Record which proxy, load balancer and Redmine settings must match, and who owns each one.

How we build

  • Configure Redmine upload limits and proxy body limits together so a rejected file fails at the same size everywhere.
  • Move attachment storage outside the web root and confirm the application server cannot serve it directly.
  • Review thumbnail and conversion helpers such as ImageMagick and Ghostscript, and disable or restrict any that the policy does not need.

How we hand over

  • Deliver a written configuration record listing each limit, its value, the file that sets it and the owner.
  • Provide test cases with oversized, blocked and renamed-extension files, with expected results for each.
  • Document how to change a limit after an upgrade, including checks against the Redmine upgrade procedure.

How we support

  • Retest upload controls after Redmine, proxy or plugin updates, since security releases can change file handling.
  • Track Redmine security advisories and apply fixes to thumbnail and attachment handling as they are released.
  • Offer ongoing support, upgrades and continuous testing as a retainer if your team wants limits maintained over time.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.