Forums

Deadline Approaching: No luck getting files to upload.

freakoftheweek75 15 Jun, 2011
Hello,

I'm more than happy to give someone superadmin access to my site if they can help. I've tried every tutorial here (as well as youtube and google) and I'm positive I have every setting correct, yet, the files never seem to upload to the proper folder. I'll supply all the info i have and answer any questions that you all may have, but would love for one of the pros to take a peak behind the curtain, as it is bedtime and I am VERY frustrated at this point.
So far the things i believe to be set correctly are as follows:

[*]field name is set correctly "file_1"
[*]files field in the file uploads tab is set to - "file_1:jpg|gif|png|{5000-5}"
[*]validation is set to required
[*]name of the form is "PicMe" and accordingly - files are set to upload to components/com_chronocontact/upload/{PicMe}
[*][*]I have also tried the full url - http://n-ur-city.com/components/com_chronocontact/upload/{form_name} - as well as simply {PicMe}
[*]i have tried this "http://greyhead.net/how-to-docs/cfv4-upload-files-gh-action" - but cannot seem to get it to work either
[*]i've set enctype="multipart/form-data" in the form manager
[*]in the system settings file uploads are "on" and max file size is set to "8MB". While this is not much i only have max upload file size set to 5MB so it should not be interfering in this case.

Beyond this...I am at a loss. As you can see above, I'm definitely trying and not just looking for a lazy quick fix. I'm under a deadline of tomorrow evening so suggestions are appreciated, but someone willing to take a look would be a LIFESAVER!

Please...any help is appreciated.

Thanks so much
Jay
Saint Louis, Mo.

PS - my form is in a module position (left) and can be found on the main page here- http://n-ur-city.com/
GreyHead 15 Jun, 2011
Hi Jay,

Which version of ChronoForms are you using?

The notes you have here mostly appear to refer to ChronoForms v3 but my custom action is for ChronoForms v4.

Assuming this is CFV3 then please change the File UPlaods path to the default value that ChronoForms displays. The image below shows the example from my server - yours will be different.
[list]
  • There should be no curly brackets in the path

  • Your path looks incomplete - there is a part missing at the beginning, before 'components'.

  • A folder path is what is needed here - not a URL.

  • The default folder is uploads, not upload - though either will work if the folder can be created).
  • [/list]

    Bob
    freakoftheweek75 15 Jun, 2011
    I'm sorry Bob, but I am using V4. I think the problem is, when i was googling to find a solution, most of the ones posted refer to fixing V3. Is there any way i can PM you the login info to take a look at what i have?
    GreyHead 15 Jun, 2011
    Hi freakoftheweek75,

    By all means email or PM me the site URL and a SuperAdmin login and I'll take a quick look. I'm away for the next hour or so - will look when I get back.

    Bob
    GreyHead 15 Jun, 2011
    Hi freakoftheweek75,

    This is working now.

    There were a couple of problems: [list]
  • in the Files box you had entered the old CFv3 style entry including the file sizes. The CFv4 style is in the notes underneath the box - file_1:jig-gif-png in this case

  • In the Upload Path box you had a folder name in curly brackets. What is needed here is a full path - again the note under the box gives you an example. I left the entry balnk so that it defaults to the uploads/form_name folder.
  • [/list]

    Bob

    PS I also spotted that you had the DB Save connected to the jos_chronoforms table - this is not a good idea; that table is used to store your forms, not for form data. I created a new jos_chronoforms_data_PicMe table with the Create Table icon and have connected the form to that.
    freakoftheweek75 15 Jun, 2011
    THANK YOU SO MUCH! However, if I could get help with one last thing...can you check my settings one last time and let me know why the submission emails are not coming through to me? I am getting the pics to upload into the proper folder but the info being entered into the fields is not going thotugh..

    Again, I looked at my settings but I'm not seeing what I have filled in wrong.

    PS - "Buying you a beer" in just a sec here.

    Thanks and let me know if you need more from me.

    Jay
    GreyHead 15 Jun, 2011
    Hi Jay,

    Please test now.

    I've made these changes: [list]
  • Removed all the entries on the Dynamic tab (you don't need them and if you did they should be input names)
  • Changed the From Email address to info@site_domain.com. (a) If the domain doesn't match emails are often treated as spam. (b) The To and From addresses were the same and that tends to get emails dropped.
  • Changed the attachments box entry to file_1 which (I think) is the name of the file uplaod input.
  • [/list]
    Bob
    freakoftheweek75 15 Jun, 2011
    There's no doubt I'm getting really close. I got the return email, and it contained the photo attachment in the email that the user uploads as well as the i.p. address of the sender. However, the other 3 or 4 text fields - while they had been filled out on the form, did not come through in the email. Is there something i need to do as far as making them mandatory, or changing field names. I'm going to go look at setting those right now unless you can tell me something i STILL 😀 ...have missing.

    Thank again!
    Jay
    RoJa 21 Jun, 2011
    You need to write a template in email setting.
    If you have field_1 in you form,
    you need to insert in the template {field_1}.
    This topic is locked and no more replies can be posted.