Forums

How to change settings for file upload?

myayoi329 22 Feb, 2009
Hi, I'm new to Chronoforms.
I would like people can upload files by ChronoForms and the files go to FTP site of web server.
In other words, instead of adding files to a folder in components/com_chronocontact/upload foloder, I want the files in a folder on the root.
Is it possible?
Max_admin 22 Feb, 2009
Hi myayoi329,

is possible by editing the file components/com_chronocontact/chronocontact.php

you will edit only 1 line of code to your desired location, may be I will add this feature to the final V3.1

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
therealwheely 11 Mar, 2009

is possible by editing the file components/com_chronocontact/chronocontact.php
you will edit only 1 line of code to your desired location, may be I will add this feature to the final V3.1



Hi Max,

What line would that be? And which part should be edited?
I'm using Chronoforms version 3.1RC2

Greetings,
Henry
Max_admin 11 Mar, 2009
Hi Henry,

this line:
$uploadedfile = JFile::upload($original_name, JPATH_COMPONENT.DS.'uploads'.DS.$formname.DS.$filename);


Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.