CF8 Error on File Upload (Debug Error = 4)

Resolve a ChronoForms file upload error with debug code 4.

Overview

The error occurs when the form's file upload field is empty, often due to duplicate field names or nested forms.
Ensure the file upload field has a unique name and is not placed within nested forms or multiple forms on the same page.

Answered
ChronoForms v8
gp gpeter73 05 Dec, 2024

Hi,I'm trying to Upload a simple File at the Form Submit.

The Debug Message says: 

Array
(
    [datei_png_jpg_pdf] => Array
        (
            [name] => 
            [full_path] => 
            [type] => 
            [tmp_name] => 
            [error] => 4
            [size] => 0
        )

)

What does that mean? I can't find an specific Error on the Weblogs. The PHP max file und post size is 50M.Thanks Peter

Max_admin Max_admin 05 Dec, 2024
Answer

the most reported reasons online for this error are:

  1. You possibly have a following input file type field with the same name
  2. You possibly have nested fileupload forms (or form in a form) or multiple forms on the same page with the same file field name
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.