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

fix: honour max file size in upload file #23333

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

maharshivpatel
Copy link
Collaborator

In case path is /api/method/upload_file, we should honour the max file size set in system settings and set request max_content_length to that value.

In case path is /api/method/upload_file, we should honour the max file size
set in system settings and set request max_content_length to that value.
@maharshivpatel maharshivpatel requested review from a team and ankush and removed request for a team November 21, 2023 11:08
@github-actions github-actions bot added the add-test-cases Add test case to validate fix or enhancement label Nov 21, 2023
@maharshivpatel maharshivpatel added backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15 and removed add-test-cases Add test case to validate fix or enhancement labels Nov 21, 2023
Copy link

codecov bot commented Nov 21, 2023

Codecov Report

Merging #23333 (5af9b29) into develop (da1fb2f) will decrease coverage by 0.04%.
Report is 7 commits behind head on develop.
The diff coverage is 50.00%.

❗ Current head 5af9b29 differs from pull request most recent head 28d05c4. Consider uploading reports for the commit 28d05c4 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #23333      +/-   ##
===========================================
- Coverage    62.27%   62.24%   -0.04%     
===========================================
  Files          771      771              
  Lines        73821    73891      +70     
  Branches      6342     6342              
===========================================
+ Hits         45975    45996      +21     
- Misses       24237    24286      +49     
  Partials      3609     3609              
Flag Coverage Δ
server 70.73% <50.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@ankush ankush merged commit 9738936 into frappe:develop Nov 22, 2023
20 of 21 checks passed
ankush added a commit that referenced this pull request Nov 22, 2023
…-23333

fix: honour max file size in upload file (backport #23333)
ankush added a commit that referenced this pull request Nov 22, 2023
…-23333

fix: honour max file size in upload file (backport #23333)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants