Please explain how the upload file form field works in V6. Tried unsuccessfully to get it to work. Tried using it in conjunction with the File Upload function, but still not working. What is "Files config"?
Thanks -
-Brian
Hi Brian,
The files config is the files fields names to be processed along with the extensions allowed, so you can use for example:
file1:jpg,png,gif
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
By "files fields" are you referring to the name of the file upload field in the form?
Please see the attached images for the settings I used for form fields, form, upload function and event.
I run the form, select my file and submit. but nothing gets uploaded to the directory.
Thanks -
-Brian
Hi Brian,
The directory path should end with a slash "\" and the directory should actually exist, because connectivity will not try to create it.
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Adding the slash to the end of the directory did the trick. Many thanks -
-Brian
I'm having problems saving an uploaded file using CC6 to an existing CF6 form. I'm getting this error message:
* Destination directory not available.
I followed the steps above.
Using an FN;
upload Name: upload_new_photo
Upload directory path: {path:front}/components/com_chronoforms6/chronoforms/uploads/
custom Files config: fieldname:jpg-jpeg-png-gif-pdf-doc-docx-JPG-JPEG-PNG-GIF-PDF-DOC-DOCX
File name provider: blank
Under Views Tab:
I call {fn:upload_new_photo} into my photo form under Content box:
{fn:upload_new_photo}
Under Events tab:
Event name: Edit_photo:
{fn:read_single_record}
{fn:check_record_exists}
{view:photo_update_form}
Whe I go back to list, the photo file should appear, it shows an "x" and no photo. When I hover over the "x" image, it shows the filed name I want to upload in the right directory and right file name but does not appear. I go to actual directory via FTP and the did not upload.
Not sure where I'm going wrong.
The folder {path:front}/components/com_chronoforms6/chronoforms/uploads/ will actually be /components/com_chronoforms6/chronoforms/components/com_chronoforms6/chronoforms/uploads/
I just entered {path:front}/uploads/ And left blank option and still not success. any other suggestions? thanks
So where are you actually calling your upload photo action? In the submitting event for your form, right?
Under events tab: save_photo
{fn:save_photo}
{fn:upload_new_photo}
{fn:check_photo_save}
{redirect:index}
I have a feeling this is where I'm messing up?