• Resolved Eric Teubert

    (@eteubert)


    I can select an attachment and submit the form. The reply gets postet, but there is no attachment. No error.
    I checked that the attachment is smaller than the maximum size and has one of the allowed file extensions.

    What could be wrong?

    Thanks, Eric

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author awesomesupport

    (@awesomesupport)

    Hi Eric:

    Does this happen when you’re using the 2015 or 2016 theme with all other plugins disabled? (Its the first thing we would want to check to make sure there isn’t some sort of conflict with another plugin or theme).

    Are there any errors in your php log files?

    Thanks.

    Thread Starter Eric Teubert

    (@eteubert)

    I activated 2016 only to realise that I can’t view tickets there because there the support template files are missing.

    Anyway, I found the issue and a fix: The name of the file input field was “wpas_files[][]” instead of “wpas_files[]”. Not sure why but I fixed it with a filter. I’ll post it here in case anyone else encounters this:

    add_filter('wpas_cf_field_atts', function($atts, $field, $option) {
    
      foreach ($atts as $index => $att) {
        if (stristr($att, 'files[][]')) {
    		$atts[$index] = str_replace('[][]', '[]', $att);
    	}
      }
      
      return $atts;
    }, 20, 3);
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Attachments Upload does not work’ is closed to new replies.