Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
(User 1 is not effected partially, as user 1 can skips some validation like for extensions).
Reproduce: log on none user 1, add a file to upload field that won't pass validation (say.. blah.patch), DO NOT press attach. Save node. Node will save, file will error out and not save.
I solved it via a custom validation in a custom module, but felt obligated to create a patch.
Moves some of submit function into a validation function to do the file_save_upload.
Comment | File | Size | Author |
---|---|---|---|
#3 | 834254-upload_validate.patch | 2.57 KB | franz |
#1 | upload_validate.patch | 2.5 KB | hefox |
upload_validate.patch | 2.53 KB | hefox | |
Comments
Comment #1
hefox CreditAttribution: hefox commentedFixing patch paths
Comment #3
franzI guess since upload module is gone and file field took over it on 7.x and 8.x, this would be only for 6.x really, so just re-rolled patch.
Comment #4
franzComment #5
franzbumping