file_upload url saving to database

bhob 30 Apr, 2013
I have written a file upload form for my site.

The form functions well. There are 5 fields, one of which is a file_upload field (as per youtube tutorials).

However, when I view data using joomla backend, the file upload field is blank. The other fields are populated as expected.

|EVENTS|

On Load

Show html (4)

On Submit

DB Save (1)


Upload Files (0)
OnSuccess

Show Thanks Message (9)

OnFail

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

Although there is no progress bar for uploads, I can see from FTP that the file is going to the default folder, and that the folder name has been named automatically after the form name.

However I cannot see the file path (for subsequent downloading) in view table...

What should I do next?

Many thanks,
Simon.
bhob 30 Apr, 2013
Array
(
    [option] => com_chronoforms
    [tmpl] => component
    [chronoform] => uploadlecturetranscrpt
    [event] => submit
    [Title] => testtitle
    [Conference] => tesconf
    [Author] => testauthor
    [Date] => testdate
    [file_upload] => 20130430004723_CS2_install_Mac.pdf
    [input_submit_6] => Submit
    [6bf51f9fe60619443525b486678ba694] => 1
    [chronoform_data] => Array
        (
            [cf_uid] => e9c113ad7e1fa2b55fa76e15b1828344
            [cf_created] => 2013-04-30 00:47:23
            [cf_created_by] => 0
            [cf_ipaddress] => 86.25.179.76
            [cf_user_id] => 0
            [option] => com_chronoforms
            [tmpl] => component
            [chronoform] => uploadlecturetranscrpt
            [event] => submit
            [Title] => testtitle
            [Conference] => tesconf
            [Author] => testauthor
            [Date] => testdate
            [file_upload] => 
            [input_submit_6] => Submit
            [6bf51f9fe60619443525b486678ba694] => 1
            [cf_id] => 3
        )

    [chronoform_data_cf_id] => 3
    [_PLUGINS_] => Array
        (
            [upload_files] => Array
                (
                    [file_upload] => Array
                        (
                            [name] => 20130430004723_CS2_install_Mac.pdf
                            [original_name] => CS2_install_Mac.pdf
                            [path] => /home/basicdev/public_html/components/com_chronoforms/uploads/uploadlecturetranscrpt/20130430004723_CS2_install_Mac.pdf
                            [size] => 23223
                            [link] => http://www.basicdevelopment.co.uk/components/com_chronoforms/uploads/uploadlecturetranscrpt/20130430004723_CS2_install_Mac.pdf
                        )

                )

        )

)

Validation Errors:

Array
(
)

File uploaded
GreyHead 30 Apr, 2013
Hi bhob,

It looks as though you have the Db Save action before the Upload Files action. As you can see, all the information you need - including the file URL and path - are available.

Bob
bhob 30 Apr, 2013
Perfect! Absolutely perfect!

Now I'll get on with the download list!...

Many many thanks.
This topic is locked and no more replies can be posted.