Forums

[Plugin: MM Forms] MM-forms -problem with adding file upload field (2 posts)

  1. ewcik_z
    Member
    Posted 2 years ago #

    Hello

    I've some problem, it's important to me to have a input file field, so I added it manually. Problem is that the fields are saved, and file is saved too, but the loader gif of AJAX no hidden and action look like not finished - no redirect to end screen.

    Have you any idea how I could solve this?

  2. customxites
    Member
    Posted 1 year ago #

    You have to edit the mm-forms.php in /plugins/mm-forms-community/

    Comment out lines 2883 - 2884

    copy('wp-content/plugins/mm-forms-community/upload/temp/'.$arr_value, 'wp-content/plugins/mm-forms-community/upload/form-upload/'.$arr_value);
    				unlink('wp-content/plugins/mm-forms-community/upload/temp/'.$arr_value);

    To

    //copy('wp-content/plugins/mm-forms-community/upload/temp/thumb_'.$arr_value, 'wp-content/plugins/mm-forms-community/upload/form-upload/thumb_'.$arr_value);
    				//unlink('wp-content/plugins/mm-forms-community/upload/temp/thumb_'.$arr_value);

    It looks like they intended to comment out the code but didn't.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags