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

Limit file upload size option #2823

Merged
merged 13 commits into from
Jan 24, 2019
Merged

Limit file upload size option #2823

merged 13 commits into from
Jan 24, 2019

Conversation

Shelob9
Copy link
Collaborator

@Shelob9 Shelob9 commented Nov 22, 2018

#1399

I merged feature/2814 (PR #2819). That PR should get merged first probably.

This adds a UI option for max upload size for HTML5 file fields and adv file fields 2.0.

This checks server-side if adv file fields 2.0 size is too large and rejects.

We might wish to, in order of how much I care:

  1. Check server side on HTML5 file fields. Important or need to revert UI option.
  2. Check in the broweser for file size of adv file field 2.0. Important, but should be an issue in 1.8.1 milestone.
  3. Show max file size in error message. Not sure if I like this, the file field description can be used to indicate max size.
  4. Implement in adv file 1.0. I disagree with doing this. I'm done maintaining that.

@Shelob9 Shelob9 added the PR (Patch) Is a pull request label Nov 22, 2018
@Shelob9 Shelob9 added this to the 1.8.0 milestone Nov 22, 2018
@Shelob9 Shelob9 requested a review from New0 November 22, 2018 00:00
Josh Pollock added 4 commits November 21, 2018 19:03
* feature/2814:
  #2814 schedule deletes in cf2 fiel fields and cleanup that handler a bit
  #2814 schedule deletes
  #2814 handle deleting directory if empty
  Only try to delete file, if it exists #2814
  Test to prove that the delete file job will make an uncaught exception in some cases #2814
  Make new job for deleting tests work #2814
  New job for deleting files #2814 - failing tests
  Make new utility methods needed for #2814 and #2794 work
  Failing tests for utility methods needed for #2814  and #2794
  #2814 rm dead code and add inline docs to existing delete job
@Shelob9 Shelob9 changed the title [WIP] Limit file upload size option Limit file upload size option Dec 4, 2018
@New0
Copy link
Collaborator

New0 commented Dec 11, 2018

When a Max upload size is set the error "SyntaxError: "JSON.parse: unexpected character at line 1 column 1 of the JSON data" prevents the submission. It is an error that will be fixed by the index.js refactor, this PR is blocked by issue #2818

@Shelob9
Copy link
Collaborator Author

Shelob9 commented Dec 11, 2018

@New0 That sounds like a PHP error during submission. Please retest with PHP debug logging on and report what the error is or what the lack of error is. Please check for PHP errors when testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR (Patch) Is a pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants