Hello,
Firstly I want to congratulated you for this great component. I am a noob and I have a few problems working with it.
Firstly, I want to work in a different database so I had read your tutorials and manuals along the forum and I did the following things:
1.- I create an username with all privileges on both database: Jommla and Mydatabase
2.- I go to advanced configuration and I check to log in the other database and I find the following messege: "DB Conection failed!"
How can I fix it?
The second question is more complicated. I want to store the filename I upload in my database. I had read the foum answer and I had cretated the following custom code before DB save action:
And I do not store the filename in the current database
Here is the debugger section:
Finally, ¿How can I change the name of the file stored on my upload directory?
Thank you very much
Firstly I want to congratulated you for this great component. I am a noob and I have a few problems working with it.
Firstly, I want to work in a different database so I had read your tutorials and manuals along the forum and I did the following things:
1.- I create an username with all privileges on both database: Jommla and Mydatabase
2.- I go to advanced configuration and I check to log in the other database and I find the following messege: "DB Conection failed!"
How can I fix it?
The second question is more complicated. I want to store the filename I upload in my database. I had read the foum answer and I had cretated the following custom code before DB save action:
<?php
$formulario_id = $formulario->formrow->id;
$formulario->data['archivo'] = $formulario_id->data['_PLUGINS_']['upload_files']['archivo']['path'];
?>
And I do not store the filename in the current database
Here is the debugger section:
Data Array:
Array
(
[option] => com_chronoforms
[chronoform] => insertar_tesis
[event] => submit
[Itemid] =>
[signatura] => 123456
[autor] => Me
[titulo] => This is a title
[anio] => 1234
[archivo] => 20121211091815_5 Saving data to the database.pdf
[input_submit_17] => Guardar
[271f8a0b15bd7f4edd279d7c03434bae] => 1
[formulario] => Array
(
[cf_uid] => e364f3b9f8a82cabb1c969b9d222a944
[cf_created] => 2012-12-11 09:18:15
[cf_created_by] => 0
[cf_ipaddress] => 127.0.0.1
[cf_user_id] => 0
[option] => com_chronoforms
[chronoform] => insertar_tesis
[event] => submit
[Itemid] =>
[signatura] => 123456
[autor] => Me
[titulo] => This is a title
[anio] => 1234
[archivo] =>
[input_submit_17] => Guardar
[271f8a0b15bd7f4edd279d7c03434bae] => 1
[id] => 590
)
[formulario_id] => 590
[_PLUGINS_] => Array
(
[upload_files] => Array
(
[archivo] => Array
(
[name] => 20121211091815_5 Saving data to the database.pdf
[original_name] => 5 Saving data to the database.pdf
[path] => images\tesis\20121211091815_5 Saving data to the database.pdf
[size] => 290816
[link] => images/tesis/20121211091815_5 Saving data to the database.pdf
)
)
)
)
Validation Errors:
Array
(
)
Debug Data
Upload routine started for file upload by : archivo
images\tesis\20121211091815_5 Saving data to the database.pdf has been uploaded successfully.
Finally, ¿How can I change the name of the file stored on my upload directory?
Thank you very much