This module has a small regression introduced by the Drupal 7.56 security release: If an anonymous user uploads a private file using this module's widget, they can't see a preview of the file before it is submitted. See https://www.drupal.org/project/drupal/releases/7.56.

The ideal fix would be to change this module's custom file-saving function so it's a wrapper around file_save_upload() rather than a replacement for it, but I'm not sure offhand if that is possible. In the meantime, it's possible to just borrow the new code from core instead.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

David_Rothstein created an issue. See original summary.

David_Rothstein’s picture

Status: Active » Needs review
FileSize
986 bytes

Here's a patch (untested) which just borrows the new code from core.

David_Rothstein’s picture

Issue summary: View changes