Forums

Problem with file upload Chronoforms v4 RC2

rilazzi 13 Sep, 2011
Hello, I actualy have a problem with file upload. I have Chronoforms v4.0 RC2 on my website.

When I send my form, I found no file in my folder and I have no error message (the folder where the files will be upload is created by chronoforms).
I think I put the good option :

in my Form tag attachment : enctype="multipart/form-data".
Other informations :


I hope you will help me, it's realy important for me. Thank you in advance
GreyHead 15 Sep, 2011
Hi rilazzi,

Please post a link to the form so I can take a quick look.

Bob
Dudley Morrown 16 Sep, 2011
hi Guys,

i actually have the same problem latest chronoform on joomla 1.7 form sends ok and no errors show but no file gets uploaded or mentioned in the email or on the server ?

form method = File
form tag attachement = enctype="multipart/form-data"

here is the form link -> ********/quotation-request/booklets-quotation-request


added later:

the only error i can find is in the server log -> File does not exist: /usr/home/web/domains/*******.org/includes/js, referer: http//******.org/administrator/index.php?option=com_chronoforms&task=form_wizard&form_id=3

not sure what is missing here?

added later:

running the 4.0 RC1.9 version of chronoforms so i think there is an update will do that now and check again....

added later:

sorry for so many edits😉 updated to 4.0 RC2 but its still not uploading the attachment here is the form HTML if that maybe has an error in it? i am now a wee bit lost and dont know what else to look for got a debug on that form i posted the link to above but it is like Chinese to me. anyhow here is the form code for the file upload attachment section:

<div class="ccms_form_element cfdiv_file" id="upload_file_container_div"><label for="Upload File">Upload File</label><input id="Upload File" class="" title="Upload File" type="file" name="input_upload_file" /><div class="clear"></div><div id="error-message-input_upload_file"></div></div>
GreyHead 16 Sep, 2011
Hi Dudley Morrown,

I think that the Form method should still be POST (not FILE).

Not sure what the error message is from but I don't think that it's connected.

What do you have in the File Upload action configuration?

Bob
Dudley Morrown 16 Sep, 2011
Hi Bob,

Changed it to the post setting but still no upload, here is what i have in the file upload settings:

enabled = yes
files = field1:jpg-jpeg-png-gif,field2:psd-ai,field3:zip-rar,field4:pdf-doc-docx
upload path = (blank)
max = 150000
min = (blank)

update:

also changed files setting to = field1:jpg-jpeg-png-gif-psd-ai-zip-rar-pdf-doc-docx but still no happiness ;( keep on trying ...
GreyHead 16 Sep, 2011
Hi Dudley Morrown,

The names need to match up. In the HTML you posted earlier you had name="input_upload_file". The Files entry needs to include a matching name e.g. input_upload_file:jpg-jpeg-png-gif. And the same for the other file upload elements.

Bob
Dudley Morrown 16 Sep, 2011
Thanks Bob,

Created a simple new form with just an upload function as i want to get this working in a simple form first but also didn't happen, i think i am too tired now and will try fresh tomorrow thanks for your support and quick response i know i will get there and then kick myself because it most probably is something really simple what i am missing!

Over and Out for now...
Dudley Morrown 19 Sep, 2011
Hmmm still not happening have created a simple form for just testing the uploading as i thought maybe the script that puts the field labels into the box was messing around with it but still not happening here is what i have done:

created a form at: *******/index.php?option=com_chronoforms&chronoform=Upload

form HTML:

<div class="ccms_form_element cfdiv_text label_over" id="name_container_div"><label>Name</label><input maxlength="150" size="30" class="" title="" hide_label="0" type="text" value="" name="input_text_2" />
<div class="clear"></div><div id="error-message-input_text_2"></div></div><div class="ccms_form_element cfdiv_file" id="upload_container_div"><label>Upload</label><input type="hidden" name="input_file_0:jpg" value="" alt="ghost" />
<input class="" title="Upload" label_over="0" hide_label="0" type="file" name="input_file_0:jpg" />
<div class="clear"></div><div id="error-message-input_file_0:jpg"></div></div><div class="ccms_form_element cfdiv_submit" id="input_submit_1_container_div"><input name="input_submit_1" class="" value="Submit" type="submit" />
<div class="clear"></div><div id="error-message-input_submit_1"></div></div>


elements = set the filed name and field id at: input_file_0:jpg
actions = field1:jpg

have tried with post and field settings and many variations of settings so far but it is simply not uploading the jpg attachement?

What am i missing?
GreyHead 19 Sep, 2011
Hi Dudley,

Your test form is working now.

The biggest problem is that the input name you used name="upload:jpg"* isn't valid - the colon is going to cause problems. I've changed this to name="upload_jpg" all the way through the Form HTML, the File Upload Configuration and the Email template.

The File Attachments box in the Email Configuration needs to be the same upload_jpg.

The Upload Files action 'Files' box is slightly different, here you do need the colon to mark out a list of file suffixes to be accepted. So this can be upload_jpg:jpg or perhaps more usefully upload_jpg:jpg-png-pdf

Bob

* This had changed from the code you posted in this thread.
Dudley Morrown 19 Sep, 2011
Thank you!!! i have bought you a beer to show my appreciation you are the best!

And just one more question as i created the forms with an older version of chronoforms it does not have all the features of the new version like the ghosting is there an easy way to update my old forms or do i have to recreate them again?
This topic is locked and no more replies can be posted.