dify icon indicating copy to clipboard operation
dify copied to clipboard

When installing the plugin, an error message was displayed: Max file size reached.

Open hangboss1761 opened this issue 3 weeks ago • 2 comments

Self Checks

  • [x] I have read the Contributing Guide and Language Policy.
  • [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report, otherwise it will be closed.
  • [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • [x] Please do not modify this template :) and fill in all the required fields.

Dify version

1.11.1

Cloud or Self Hosted

Cloud

Steps to reproduce

Try to install plugin https://marketplace.dify.ai/plugins/hangboss1761/echarts_convert.

✔️ Expected Behavior

  1. The plugin size is 38.3 MB,it is designed to be able to run offline, so some additional dependencies are packaged.
  2. The dify-plugin cli package limt is 50 MB
  3. I want to confirm what the upper limit of Cloud is, so as to determine how I should modify the implementation of the plugin. By the way, I'm the developer of the plugin.

❌ Actual Behavior

The limitations of the official packaging tool are inconsistent with those of the Dify platform.It is recommended to make them consistent so that plugin developers can clearly understand the constraints during the development process.

hangboss1761 avatar Dec 24 '25 05:12 hangboss1761

There isn't a clearly documented maximum plugin file size for Dify Cloud, but based on user reports and issue discussions, the enforced limit is below 38.3 MB as of version 1.11.1—even though the dify-plugin CLI allows packaging up to 50 MB. This discrepancy is why you're seeing the "Max file size reached" error when uploading your plugin, despite it being under the CLI limit.

For now, to ensure compatibility with Dify Cloud, keep plugin packages well below 38 MB, minimize bundled dependencies, or split functionality if possible. The CLI and platform limits are not always aligned, so it's a good idea to leave extra margin. For self-hosted deployments, you can adjust environment variables like PLUGIN_MAX_PACKAGE_SIZE and NGINX_CLIENT_MAX_BODY_SIZE, but these aren't available on Dify Cloud. It would be helpful for the Dify team to clarify and document the cloud limit and align it with the CLI for developer clarity.

References:

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

Chat with Dosu Open in Cursor Join Discord Share on X

dosubot[bot] avatar Dec 24 '25 05:12 dosubot[bot]

The size of the extracted plugin should be less than 50mb.

crazywoola avatar Dec 25 '25 02:12 crazywoola

The size of the extracted plugin should be less than 50mb.

Plugin size is 38 MB ,you can see its size here: https://github.com/hangboss1761/echarts-convert-dify-plugin/releases/tag/v0.0.1

Maybe there is an issue of inconsistent system configurations?

Perhaps we need to adjust the official configuration so that dify-api and dify-plugin-daemon have consistent configurations, enabling this plugin to be installed normally?

hangboss1761 avatar Dec 27 '25 05:12 hangboss1761