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

单个附件大小不能超过25MB #210

Closed
gmksbk opened this issue Jun 21, 2024 · 7 comments
Closed

单个附件大小不能超过25MB #210

gmksbk opened this issue Jun 21, 2024 · 7 comments

Comments

@gmksbk
Copy link

gmksbk commented Jun 21, 2024

上传附件的时候如果大于25MB就会有提示:文件过大 单个文件大小不能超过25MB。只能分割上传。
直接访问blob,上传文件正常没有大小限制。请问这是什么原因?是否需要在chatnio追加环境变量?

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: The size of a single attachment cannot exceed 25MB

When uploading an attachment, if it is larger than 25MB, a prompt will appear: The file is too large. The size of a single file cannot exceed 25MB. Can only be uploaded in splits.
Directly access the blob, and there is no size limit for uploading files normally. Is this what is the reason? Do I need to append environment variables to chatnio?

@Sh1n3zZ
Copy link
Collaborator

Sh1n3zZ commented Jun 21, 2024

@gmksbk
Copy link
Author

gmksbk commented Jun 22, 2024

Hi,

是 chatnio 的限制,见:

https://github.com/Deeptrain-Community/chatnio/blob/0ddd2d2a894ae4d60e2eb1d64075c75eaaae3d28/app/src/components/FileProvider.tsx#L35

Regards, Junhai Deng

感谢,这个能通过环境变量修改吗

@Sh1n3zZ
Copy link
Collaborator

Sh1n3zZ commented Jun 22, 2024

Hi,

目前暂时不支持通过使用“环境变量”的方式进行修改,未来近期可能也不会对这部分内容做出修改,评估后可能会在后台添加此功能。
建议您现在可以通过 fork 本仓库后修改此行代码并按照 README 中的步骤进行手动编译部署的形式以实现您在此 issue 中所提到的“更改上传文件大小最大值”同时便于后续与本仓库进行 sync update

Best Regards,
Junhai Deng

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Hi,

Modification through the use of "environment variables" is currently not supported, and this part of the content may not be modified in the near future. This feature may be added in the background after evaluation.
It is recommended that you now modify this line of code by forking this repository and following the steps in the README to manually compile and deploy it to achieve the "change the maximum upload file size" you mentioned in this issue and to facilitate subsequent cooperation with this repository. Perform sync update

Best Regards,
Junhai Deng

@gmksbk
Copy link
Author

gmksbk commented Jun 22, 2024

Hi,

目前暂时不支持通过使用“环境变量”的方式进行修改,未来近期可能也不会对这部分内容做出修改,评估后可能会在后台添加此功能。 建议您现在可以通过 fork 本仓库后修改此行代码并按照 README 中的步骤进行手动编译部署的形式以实现您在此 issue 中所提到的“更改上传文件大小最大值”同时便于后续与本仓库进行 sync update

Best Regards, Junhai Deng

感谢

@gmksbk gmksbk closed this as completed Jun 22, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Hi,

Modification through the use of "environment variables" is currently not supported, and this part of the content may not be modified in the near future. This function may be added in the background after evaluation. It is recommended that you now modify this line of code by forking this repository and following the steps in the README to manually compile and deploy it to achieve the "change the maximum upload file size" you mentioned in this issue and to facilitate subsequent cooperation with this repository. Perform sync update

Best Regards, Junhai Deng

grateful

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

3 participants