(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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hefox’s picture

FileSize
2.5 KB

Fixing patch paths

Status: Needs review » Needs work

The last submitted patch, upload_validate.patch, failed testing.

franz’s picture

I 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.

franz’s picture

Status: Needs work » Needs review
franz’s picture

bumping

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.