Forums

file uploading but filename not saving into database

kgriffin 13 May, 2022
Hi-

I am having a problem with my file data not being saved. As you can see below, the filename is part of the form data (judge_summaries). I have "Save Data" and "Upload" set for the field, and the file uploads fine with an upload action, but nothing gets saved to the database. When you look at the data to be saved (see debugging below form data array), you see that the file name does not get transferred to the save data array. I have tried multiple things to get the information to save, but nothing works. Is there a special trick to getting the file name saved? Using Joomla 3.10.

Array
(
    [chronoform] => currscholapp_committee
    [gpage] => save
    [aid] => 596
    [scholapp] => Array
        (
            [aid] => 596
            [mailing_same_as_street] => 
            [teacher_rec_received] => y
            [teacher_rec] => 
            [select_category0] => 
            [select_category1] => 
            [invited_to_audition] => y
            [title] => 
            [title_2] => 
            [accompanist_name] => 
            [judge_summaries] => 20220513203656_2022-vm-judges-typed-summary-cole-laudenslager.pdf
            [scholarship_awardee] => y
            [title_of_award] => First Place Adult
            [amount_of_award] => 500
            [link_to_scholarship_performance] => 
        )

    [sig_form] => 
    [AppJSNInfo] => Array
        (
            [age2] => 18
        )

    [s] => 
    [Itemid] => 491
    [option] => com_chronoforms7
    [view] => form
    [__cf_token] => 716f797c-1b7e-4fb7-a97a-e9b0ec707476
)
Array
(
    [save_data_379] => Array
        (
            [result] => Data saved successfully!
            [dataset] => Array
                (
                    [aid] => 596
                    [mailing_same_as_street] => 
                    [teacher_rec_received] => y
                    [teacher_rec] => 
                    [select_category0] => 
                    [select_category1] => 
                    [invited_to_audition] => y
                    [title] => 
                    [title_2] => 
                    [accompanist_name] => 
                    [judge_summaries] => 
                    [scholarship_awardee] => y
                    [title_of_award] => First Place Adult
                    [amount_of_award] => 500
                    [link_to_scholarship_performance] => 
                )
Colnem 14 May, 2022
Hi

It's impossible to do what happens without a copy of the form.

Just I say that: I use upload files and it's working very well with CF7.
kgriffin 20 May, 2022
Are you asking for a backed up version of the form to help me solve this issue? Because if you are, that's great. How do I get it to you?
kgriffin 20 May, 2022
Or are you offering to provide me with an example of a working form that saves the file name to the database for future downloading? Because if I had that, I could figure out what I am doing wrong as well.
Colnem 20 May, 2022
Hi

OK, give me a copy of your form.
But give the time to do that: the Giro 2022 is a very beautiful race 😀 !
GreyHead 21 May, 2022
Hi kgriffin,

To get the backup file to Colnem you could try to upload it here, or perhaps better, upload it on your site and PM a link to Colnem.

Bob
kgriffin 14 Jul, 2022
Hi-

Life interrupted and I have not been able to get back to this until now. I am still having the same problem. I can upload the file all day long, but the info never gets saved to the db no matter what I do. I tried to upload a back up of the form here for you to look at, but I just get an error when I try. The file type does not allow me to upload it to my site to send you a link to it. How do I get you this file?
flashfs 02 Aug, 2022
Try to attach screenshots of your various configurations. The form settings, the field settings, the Save DB settings etc.
You need to login to be able to post a reply.