ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

File Field Problem?

Fredolino 31 Aug, 2019
Hi,
if I upload an image with the file field, then the image name is stored in the database but the file is not loaded on the server as it automatically works with the CF action.
"Upload to server" is activated.
What do I have to do in CC6?
F.
healyhatman 31 Aug, 2019
Untick upload to server and use the action instead
Fredolino 31 Aug, 2019
this, not works:

File Field
Tab general:
Name: fotoupload
Name: Fund[photo]
ID: fotoupload
Tab events:
no empty
Function
{fn:upload56}

under Functions
upload file-Function
name: upload56

F.
Fredolino 01 Sep, 2019
I still do not understand how it works with the function "Upload files" and the "File field".
If I do not have the function in the form, only in the Events tab, then nothing will be displayed in the debugger.
If I have the form:
<td> <strong> Upload a photo: </ strong> <br />
{fn: upload_foto} {view: fotoupload} </ td>
then the debugger shows me:

Array
(
    [path] => /.../components/com_chronoconnectivity6/chronoconnectivity/uploads/
    [var] =>
)

But here the file is not uploaded.
Fredolino 01 Sep, 2019
ok, with file config say the debugger:
[photo] => Array
        (
            [extensions] => Array
                (
                    [0] => jpg
                    [1] => jpeg
                )

            [info] => File is not present.
        )

    [var] => Array
        (
        )

)
healyhatman 01 Sep, 2019
So the file upload function UPLOADS the file that the user has sent. So it goes in the submit event.
Fredolino 01 Sep, 2019
I must have also in CC6 a Event "submit" under the tab Events?
healyhatman 01 Sep, 2019
Of course. Doesn't need to be called that but yes. You submit the form to the event, which is where the file is actually uploaded.
Fredolino 01 Sep, 2019
ok,

but, the form (with file field) is in the Event:
save_new_beob

and in this i have the function:
{fn:upload_foto}
Fredolino 01 Sep, 2019
also the form: beob_new_form
with the file field
have  the submit event: save_new_beob
healyhatman 01 Sep, 2019
If I put a save data action and a text field in the SAME event, it won't work because the text field hasn't been filled in yet. Same 5hing as with the file field. You can't put the file upload action the the same event as the file upload field, because you haven't selected the file yet.
Fredolino 01 Sep, 2019
also so not work in CC6?
https://www.sommerfugl.de/_adat/Screenshot.png
healyhatman 01 Sep, 2019
put the file upload function in the event that that form submits to
Fredolino 01 Sep, 2019
yes, i have...under the Event: save_new_beob

{fn:upload_foto} <- save not data of server
{fn:save_beob_new}  <- save dataname in database (its work correct)

and the form (name: beob_new_form) with files field have a submit event: save_new_beob
Fredolino 01 Sep, 2019
Answer
:-)
Problem solved.
actived upload to Server in file field and the function in Events.
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com