Image upload causes critical error

[ad_1]

Hi @mairaforesto,

Thanks for providing detailed information about the problem you are having.

You can either make your File Upload field required, or, in the PDF template, you can check the file upload value is not empty before trying to output it:

if ( ! empty( $form_data['field']['Logotipo']['url'] ) ) {
   //output your file here
} else {
   //output something when no file uploaded
}

All the best with your project. 👍

  • This reply was modified 24 seconds ago by Jake Jackson. Reason: fix sentance structure so it is not ambiguous

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer