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.
When uploading files, the field form isn't updated, and so files never get added to the node.
The problem occurs when invoking the filefield hook and the form is replaced with an empty array ... I copied the implementation of hook_form_alter, I hope it's ok.
Comment | File | Size | Author |
---|---|---|---|
filefield-hook-form.patch | 761 bytes | Egon Bianchet |
Comments
Comment #1
hbfkf CreditAttribution: hbfkf commentedI can confirm that (a) upload did not work for me either with the HEAD version of the module and (ii) that the proposed patch fixes this without problems so far.
Comment #2
sgriffin CreditAttribution: sgriffin commentedIts not in the head as of 3/27 and this patch FIXED the problem.
Comment #3
wmostrey CreditAttribution: wmostrey commentedI had the same issue. It remained when using the latest HEAD version (downloaded just now) but was fixed with this patch.
Comment #4
dopry CreditAttribution: dopry commentedCommitted to HEAD, thanks.
Comment #5
(not verified) CreditAttribution: commented