Uploaded files not being saved on server.

Uploaded files not being saved on server in ChronoForms.

Overview

The issue occurs because the file upload action is configured with a placeholder field name that does not match the actual upload element in the form.
Ensure the 'Files config' setting in the upload action uses the exact name of the file upload element in your form.

Answered
go gouz 01 Jan, 2015
I must be doing something very wrong here. Everything seems to work ok except files are not being saved on server even if path is empty.

Please any tip?
------------------
Debug:
Data Array
Array
(
    [option] => com_chronoforms5
    [chronoform] => product_registration
    [event] => submit
    [product_cat] => xicom
    [product] => Valencia
    [purchase_date] => 01-01-2015
    [submit_form] => Submit
    [id] => 7
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
    [4] => Array
        (
            [DB Save] => Array
                (
                    [Queries] => Array
                        (
                            [0] => INSERT INTO `jos_chronoengine_chronoforms_db_product_registration` (`product_cat`, `product`, `purchase_date`, `submit_form`, `user_id`, `uniq_id`, `created`) values ('xicom', 'Valencia', '01-01-2015', 'Submit', '0', '18d4d99b911a8886e47a4c626dcfea7d26aaf62c', '2015-01-01 05:26:14');
                        )

                )

        )

)


-----------------------------------
Edit element settings
General

Field Name: receipt
Field ID: receipt
Label: Purchase receipt
Label position: Left
Sub Label:
Class:
Title:
Style:
Multiple: No
Extra params:
Load state: Visible & Enabled
Tooltip: Scan/Copy your receipt and save it online. (Backup in case of receipt loss.)
Enable ghost: No
Ghost value:


---------------------------------

Edit action
Enabled: Yes
Files config: file1:jpg-png-pdf-docx
Upload path: /home/Offline/product_registration
Max file size: 2000
Min file size: 0
Max size error: Sorry, Your uploaded file size exceeds the allowed limit.
Min size error: Sorry, Your uploaded file size is less than the minimum limit.
File type error: Sorry, Your uploaded file type is not allowed.
Array fields:
File name code: <?php return date("YmdHis")."_".$file_name;
Extensions separator: -
va vales 01 Jan, 2015
I do not see file1 in to fields of form.
Gr GreyHead 01 Jan, 2015
Hi gouz,

As vales says - is there a file1 File Upload element in your form Designer tab?

Bob
go gouz 01 Jan, 2015
Answer
thx.
I changed "file1" from Files config: file1:jpg-png-pdf-docx, into the Upload Element's name that i was using and it worked.
This topic is locked and no more replies can be posted.