• Resolved hdossary

    (@hdossary)


    Hi,

    in my form I have the option to upload a file which mentions the file types below the input field. (Allowed Type(s): .pdf, .doc, .docx)

    Is it possible to also show here the max size of file upload? i.e “(size limit: 2mb)”

    If so, how i can edit this?thanks

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter hdossary

    (@hdossary)

    hello, is it also possible to change the wording of the error message when the wrong file type is selected?

    At the moment it says:
    Sorry, this file type is not permitted for security reasons.

    I’d like to change it to
    Sorry, this file type is not permitted.

    is there a php file i can edit?

    Plugin Support vidyakv

    (@vidyakv)

    hi @hdossary,

    1. If you have some theme/plugin customization experience you can use ‘awsm_application_form_fields’ filter hook for doing the same. For example,
      function awsm_application_form_fields( $form_fields ) {
      	if ( isset( $form_fields['awsm_file'] ) ) {
      		$form_fields['awsm_file']['content'] .= '<br /><small>Your custom content here.</small>';
      	}
      	return $form_fields;
      }
      add_filter( 'awsm_application_form_fields', 'awsm_application_form_fields' );

      Also, please note that we use the default WordPress maximum upload size limit for the resume field.

    2. This is WordPress generated default error message for file upload. You can use WordPress ways to change the same.

    Regards,
    Vidya K V

    Thread Starter hdossary

    (@hdossary)

    Hi @vidyakv thanks so much. Can i confirm where I place the code? in “class-awsm-job-openings-settings.php”?

    Plugin Support vidyakv

    (@vidyakv)

    Hi @hdossary,

    You have to add this code to your theme’s functions.php file. We recommend child theme for doing this, because if you update your theme then these changes will be gone! You have to add this again in functions.php file.

    Regards,
    Vidya K V

    Thread Starter hdossary

    (@hdossary)

    Thanks so much @vidyakv all works fine!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Upload file size limit’ is closed to new replies.