Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Mark Wilkinson

    (@wpmarkuk)

    Sorry I am not entirely such what you mean here. Could you explain a little more about the problem please?

    Thread Starter Uprootednut

    (@uprootednut)

    Ok I uploaded a couple of test applications I tried to view the application and it shows like this – https://bryan-armstrong.com/wp-content/uploads/2015/03/test.txt

    I was under the impression the CV would be an attachment opposed to a link to the file in the browser?

    Hope that makes sense.

    Plugin Author Mark Wilkinson

    (@wpmarkuk)

    Am I right in thinking that you are indicating that the CVs are not attached to the email sent through to Broadbean?

    Thread Starter Uprootednut

    (@uprootednut)

    Yeah

    Plugin Author Mark Wilkinson

    (@wpmarkuk)

    Version 2.0.4 to be released soon will address this. You can download here:

    https://github.com/wpmark/wpbroadbean/tree/develop

    Thread Starter Uprootednut

    (@uprootednut)

    It now seems to be when ever I send an application works the file shows in broadbean but when ever other people do it it doesn’t seem to work.

    Got some odd error message behaviour.

    Image

    Two sets of error messages and success messages even when the application is successfully sent.

    Thread Starter Uprootednut

    (@uprootednut)

    Also duplicate jobs seem to be being posted daily with out any one actually publishing a job?

    Thread Starter Uprootednut

    (@uprootednut)

    I upgraded to the 2.0.4 version of the plugin but was having issues with applications going through to Broadbean, they are going into the WordPress backend but not to Broadbean.

    Is this something you are aware of?

    Thread Starter Uprootednut

    (@uprootednut)

    Disregard the last post.

    Thanks to Sean at https://www.limeleaf.co.uk we actually resolved this by adding the mime types. See this code snippet:

    $wpbb_allowed_mime_types = apply_filters(
    				'wpbb_application_allowed_file_types',
    				array(
    					'application/pdf',
    					'application/msword',
    					'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
    					'application/vnd.openxmlformats-officedocument.wordprocessingml.template'
    				)
    			);
    
    			/* check uploaded file is in allowed mime types array */
    			if( ! in_array( $wpbb_filetype[ 'type' ], $wpbb_allowed_mime_types) ) {
    
    				/* upload file not allowed - add to messages */
    				$wpbb_messages[] = '<p class="message error">Error: CV is not an allowed file type.</p>';
    				return; //this return statement added by Lime Leaf on 17/7/2015 to stop the form submitting when the incorrect file type is added
    			}
    Plugin Author Mark Wilkinson

    (@wpmarkuk)

    Thanks Bryan. I assume your changes above prevent the form from being posted when the file type is not a valid mime type?

    Having reviewed the code I can see that it does look like I need to implement some further checking here to prevent the application being added when the mime type does not match.

    With the latest version of the plugin there are a number of additional allowed file types. Take a look here:

    https://github.com/wpmark/wpbroadbean/blob/master/functions/application-form.php#L162-L173

    Also just to note to make sure that you are not altering the plugins file here to make the changes. You will notice that the plugin provides a filter named wpbb_application_allowed_file_types with you can use to remove or add additional mime types.

    Hi Mark

    Thanks for your response. We will update the plugin and use the filter you have recommended.

    Kind regards
    Steven Bryan
    https://bryan-armstrong.com/

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘CV's not being sent as attachments’ is closed to new replies.