BUG: Uploaded file url not saving as Custom Field.
-
Hello,
When you assign an File Upload field in the Custom Fields section of a Post Data field, the custom field is saved as empty.
After we discovered this issue, we made different tests on a blank WordPress 6.1.1 install (only Twenty Twenty-Three 1.0 + Forminator 1.22.1) and the issue persists. Our hosting is WPEngine.
After some debugging, and trying to get the most possible information we can get for you, we discovered that this issue can be solved by editing the following:
File: library/modules/custom-forms/front/front-action.php
Line: 2214
Before: if ( 'transfer' === $mode ) {
After: if ( 'transfer' === $mode || 'upload' === $mode ) {
This is important, because otherwise, the file_url is never passed to self::$info[‘upload_in_customfield’][ $cf_key ][‘uploads’] when the file upload is in “upload” mode; only on “transfer” mode; and that file_url is needed later in the execution.
I hope you can implement this fix in the next version.
Thank you very much!
- The topic ‘BUG: Uploaded file url not saving as Custom Field.’ is closed to new replies.