in edit action i load form created with cf v5 using your tutorial...
if i want to modify an image from form it don't work. in cf i have also put into "on submit" area "file upload" before "connection action" , but it don't work at the same...someone can help me please?
thank's
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I edit uploaded files in a form?
P.S: I'm just an automated service๐
Regards,
Max
Hello fedesimo,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How can I edit uploaded files in a form?
P.S: I'm just an automated service๐
unfortunately does not work ๐
Please make a form copy, remove the "connection action" then test the form, make sure the upload works in this case.
Regards,
Max
this solution does not work. I have another form that works and use it directly from the menu item ...
are the following settings correct?
<?php
$form->data["mod"]["foto"] = $form->data["foto"];
thank's for help but...don't work. ๐
I also thought to enter the code before the "file upload" like this:
<?php
$form->data["foto"] = $form->data["mod"]["foto"];
?>
in both ways it dont't save even the file name into db...
do you think i'd delete everything and rebuild all?
tell me no...please ๐
Why did you reverse the code order ? please use my code in a custom code action under the files upload and before the connection action, if it doesn't work then please add a debugger action after the custom code and delete the "connection action" for testing, send me the debug report!
Regards,
Max
i made the changes has you told me...here is the debug
i reversed your code and put it before "files upload" (after i've tried your code) because i've thougth that the form "take " mod[foto] and file upload "foto"...
thanks for all.
Regards,
Max
this is an edit form where the users can change the fields value in the record but if they change one or some fields, when submit the field "foto" disappear. into db the field "foto" take an empty value....how can i do?
thank's for all.
<?php
if(empty($form->data["Model"]["foto"])){
unset($form->data["Model"]["foto"]);
}
Regards,
Max
