Forums

[resolved]Upload File

chate 05 Apr, 2011
Hi,

In first, sorry for my english. french of course🙄

Secondly, thx for your component.

I'm beginner and i try create a simple form with upload file. But when i valid, the folder is not create and the file is not upload. (I have tried in local and in server)

In event, i put :



after I don't know to put in fiedls : Files and Upload Path



For event DB Save : the data is OK in table except field upload = Null


what did I wrong? :?

Thank you in advance :wink:
GreyHead 05 Apr, 2011
Bonjour chate,

You can leave the upload path empty - the files will then be uploaded to the path JOOMLA_PATH/components/com_chronoforms/uploads/FORM_NAME/
where JOOMLA_PATH and FORM_NAME depend on your local settings.

You must put an entry into the Files box. The example given in the help note are:
field1:jpg-png-gif,field2:zip-rar,field3:doc-docx-pdf

These take the form of input name (from the File upload element) and the list of permitted file suffixes. There are three file inputs covered here. If you only have one then your entry might be like this:

input_file_1:jpg-png

Bob
chate 05 Apr, 2011
Thx for quick reply

So in the preview i have take field Name like this :




And I paste in the Events Upload Files :



and I leave the field upload path empty

I do a test and when i click on submit, i have a white page erreur 500 : (ie and firefox)



Nothing in db, not new record in table. if I delete input_file_upload:jpg => new record in table ok but not upload.


I tested in server localhost and I get the message: "Fatal error: Can not pass parameter 2 by reference in C: \ xampplite \ htdocs \ Joomla16 \ administrator \ components \ com_chronoforms \ form_actions \ upload_files \ upload_files.php on line 39"
GreyHead 06 Apr, 2011
Hi chate,

Please see Fredrik's post here. This is a bug in the J1.6 version.

Bob
chate 06 Apr, 2011
hi bob,

I tested the solution by Fredrik and all it's ok. there is no bug now and the upload is OK

Thanks for all bob and good continuation for chronoform 🙂

Chate
This topic is locked and no more replies can be posted.