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 :
Problem with file upload Chronoforms v4 RC2 image 1

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

Please add a 'Debugger' action to the form On Submit event. The submit the form and copy and paste the debug output here.

Bob
Chritian2011 12 Oct, 2011
Hi, I can not upload the file. I have inserted the debug and the result is as follows:

[attachment=0]Immagine.png[/attachment]

cosa devo modificare?

thanks
GreyHead 15 Oct, 2011
Hi Chritian2011,

It looks as though the name may not match between the File input and the File Upload action.

Bob
wierrookje 29 Oct, 2011
hmm i have the same issue, the file won't upload to the server and will not send the mail

When the file is send it must be send to the specialist agent per box that is selected but first the file needs to be uploaded to the server and there it failes already.

Can someone help me:


<div class="ccms_form_element cfdiv_text" id="naam_container_div"><label>Naam</label><input maxlength="150" size="30" class=" validate['required','alpha']" title="" label_over="0" hide_label="0" type="text" value="" name="Naam" />
<div class="clear"></div><div id="error-message-Naam"></div></div><div class="ccms_form_element cfdiv_file" id="foto_upload_container_div"><label>Foto Upload</label><input type="hidden" name="Foto" value="" alt="ghost" />
<input class=" validate['required']" title="" label_over="0" hide_label="0" type="file" name="Foto" />
<div class="clear"></div><div id="error-message-Foto"></div></div><div class="ccms_form_element cfdiv_select" id="kies_een_medewerker_container_div"><label for="Medewerker">Kies een Medewerker</label><select size="1" label_over="0" hide_label="0" id="Medewerker" class="Medewerker validate['required']" title="Medewerker" type="select" name="Medewerker">
<option value="">Kies Medewerker</option>
<option value="mail@adres1.com">Box: 01 </option>
<option value="mail@adres2.com>Box: 02 </option>
<option value="mail@adres3.com">Box: 03 </option>
<option value="mail@adres4.com">Box: 04 </option>
<option value="mail@adres5.com">Box: 05 </option>
<option value="mail@adres6.com">Box: 06 </option>
<option value="mail@adres7.com">Box: 07 </option>
<option value="mail@adres8.com">Box: 08 </option>
<option value="mail@adres9.com">Box: 09 </option>
</select>
<div class="clear"></div><div id="error-message-Medewerker"></div></div><div class="ccms_form_element cfdiv_submit" id="input_submit_3_container_div"><input name="input_submit_3" class="" value="Verzenden" type="submit" />
<div class="clear"></div><div id="error-message-input_submit_3"></div></div>
GreyHead 29 Oct, 2011
Hi wierrookje,

What do you see when you add a DeBugger action to the On Submit event?

What settings do you have in the File Upload action?

Bob
wierrookje 30 Oct, 2011
Hereby the asked settings:

Enabled: Yes
Files: field1:jpg-jpeg-png-gif
Upload Path: blank
Max Size in KB: 50000
Min Size in KB: 1

When i press the send button i get the below debug information below the screen the confirmation screen.no mail has been send as well and the file is not uploaded.

Profiel-informatie
Application 0.002 seconds (+0.002); 0.42 MB (+0.424) - afterLoad
Application 0.073 seconds (+0.071); 2.95 MB (+2.525) - afterInitialise
Application 0.087 seconds (+0.014); 3.42 MB (+0.468) - afterRoute
Application 0.153 seconds (+0.066); 4.21 MB (+0.795) - afterDispatch
Application 0.167 seconds (+0.015); 4.67 MB (+0.456) - beforeRenderModule mod_wrapper (Consulenten)
Application 0.173 seconds (+0.005); 4.78 MB (+0.108) - afterRenderModule mod_wrapper (Consulenten)
Application 0.173 seconds (+0.000); 4.78 MB (-0.000) - beforeRenderModule mod_jevents_latest (Agenda)
Application 0.335 seconds (+0.162); 7.94 MB (+3.162) - afterRenderModule mod_jevents_latest (Agenda)
Application 0.335 seconds (+0.000); 7.89 MB (-0.045) - beforeRenderModule mod_custom (Tips voor dat u belt)
Application 0.376 seconds (+0.041); 8.20 MB (+0.312) - afterRenderModule mod_custom (Tips voor dat u belt)
Application 0.376 seconds (+0.000); 8.20 MB (-0.000) - beforeRenderModule mod_custom (Ook te vinden op: )
Application 0.378 seconds (+0.002); 8.21 MB (+0.003) - afterRenderModule mod_custom (Ook te vinden op: )
Application 0.379 seconds (+0.000); 8.21 MB (+0.002) - beforeRenderModule mod_icemegamenu (Hoofdmenu)
Application 0.491 seconds (+0.112); 8.71 MB (+0.502) - afterRenderModule mod_icemegamenu (Hoofdmenu)
Application 0.496 seconds (+0.005); 8.80 MB (+0.092) - afterRender
Geheugengebruik
8.81 MB (9,239,628 Bytes)
27 queries gelogd

    SELECT `data`
      FROM `em_session`
      WHERE `session_id` = '73a79c93797ffa47191bc7ab1b0024ec'
    DELETE
      FROM `em_session`
      WHERE `time` < 1319956915
    SELECT folder AS type, element AS name, params
      FROM em_extensions
      WHERE enabled >= 1
      AND type ='plugin'
      AND state >= 0
      AND access IN (1,1)
      ORDER BY ordering
    SELECT extension_id AS "id", element AS "option", params, enabled
      FROM em_extensions
      WHERE `type` = 'component'
      AND `element` = 'com_languages'
    SELECT m.id, m.menutype, m.title, m.alias, m.path AS route, m.link, m.type, m.level, m.language,m.browserNav, m.access, m.params, m.home, m.img, m.template_style_id, m.component_id, m.parent_id,e.element as component
      FROM em_menu AS m
      LEFT JOIN em_extensions AS e
      ON m.component_id = e.extension_id
      WHERE m.published = 1
      AND m.parent_id > 0
      AND m.client_id = 0
      AND m.access IN (1,1)
      ORDER BY m.lft
    SELECT extension_id AS "id", element AS "option", params, enabled
      FROM em_extensions
      WHERE `type` = 'component'
      AND `element` = 'com_chronoforms'
    SELECT *
      FROM em_languages
      WHERE published=1
      ORDER BY ordering ASC
    SELECT id, home, template, s.params
      FROM em_template_styles as s
      LEFT JOIN em_extensions as e
      ON e.element=s.template
      AND e.type='template'
      AND e.client_id=s.client_id
      WHERE s.client_id = 0
      AND e.enabled = 1
    SELECT *
      FROM `em_chronoforms`
      WHERE `name` = 'FotoUpload'
      AND `published` = '1'
    SELECT *
      FROM `em_chronoform_actions`
      WHERE `chronoform_id` = '2'
      ORDER BY `
      order`
    SELECT *
      FROM `em_extensions`
      WHERE `element` = 'com_chronoforms'
      AND `type` = 'component'
    SELECT m.id, m.title, m.module, m.position, m.content, m.showtitle, m.params, mm.menuid
      FROM em_modules AS m
      LEFT JOIN em_modules_menu AS mm
      ON mm.moduleid = m.id
      LEFT JOIN em_extensions AS e
      ON e.element = m.module
      AND e.client_id = m.client_id
      WHERE m.published = 1
      AND e.enabled = 1
      AND (m.publish_up = '0000-00-00 00:00:00' OR m.publish_up <= '2011-10-30 06:56:55')
      AND (m.publish_down = '0000-00-00 00:00:00' OR m.publish_down >= '2011-10-30 06:56:55')
      AND m.access IN (1,1)
      AND m.client_id = 0
      AND (mm.menuid = 120 OR mm.menuid <= 0)
      ORDER BY m.position, m.ordering
    SELECT extension_id AS "id", element AS "option", params, enabled
      FROM em_extensions
      WHERE `type` = 'component'
      AND `element` = 'com_jevents'
    SHOW FULL COLUMNS
      FROM `em_jev_users`
    SELECT b.rules
      FROM em_assets AS a
      LEFT JOIN em_assets AS b
      ON b.lft <= a.lft
      AND b.rgt >= a.rgt
      WHERE a.name = 'com_jevents'
      ORDER BY b.lft
    SELECT extension_id AS "id", element AS "option", params, enabled
      FROM em_extensions
      WHERE `type` = 'component'
      AND `element` = 'com_users'
    SELECT c.id AS id, a.name as asset_name
      FROM em_categories c
      INNER JOIN em_assets a
      ON c.asset_id = a.id
      WHERE c.extension = 'com_jevents'
      AND c.published = 1
    SELECT b.rules
      FROM em_assets AS a
      LEFT JOIN em_assets AS b
      ON b.lft <= a.lft
      AND b.rgt >= a.rgt
      WHERE a.name = 'com_jevents.category.11'
      ORDER BY b.lft
    SELECT b.rules
      FROM em_assets AS a
      LEFT JOIN em_assets AS b
      ON b.lft <= a.lft
      AND b.rgt >= a.rgt
      WHERE a.name = 'com_jevents.category.12'
      ORDER BY b.lft
    SELECT c.id
      FROM em_categories AS c
      WHERE c.access IN (1,1)
      AND c.published = 1
      AND c.extension = 'com_jevents'
    SELECT DISTINCT rpt.eventid
      FROM em_jevents_repetition as rpt
      LEFT JOIN em_jevents_vevent as ev
      ON rpt.eventid = ev.ev_id
      LEFT JOIN em_jevents_icsfile as icsf
      ON icsf.ics_id=ev.icsid
      LEFT JOIN em_jevents_vevdetail as det
      ON det.evdet_id = rpt.eventdetail_id
      LEFT JOIN em_jevents_rrule as rr
      ON rr.eventid = rpt.eventid
      WHERE ev.catid IN(-1,11,12)
      AND rpt.endrepeat >= '2011-10-30 07:56:55'
      AND rpt.startrepeat <= '2011-12-29 23:59:59'
      AND ((rpt.startrepeat >= '2011-10-30 07:56:55'
      AND det.multiday=0) OR det.multiday=1)
      AND ev.state=1
      AND ev.access IN (1,1)
      AND icsf.state=1
      AND icsf.access IN (1,1)
      AND rpt.startrepeat=( SELECT MIN(startrepeat)
      FROM em_jevents_repetition as rpt2
      WHERE rpt2.eventid=rpt.eventid
      AND rpt2.startrepeat >= '2011-10-30 07:56:55'
      AND rpt2.endrepeat <= '2011-12-29 23:59:59' )
      ORDER BY rpt.startrepeat ASC
      LIMIT 10
    SELECT rpt.eventid
      FROM em_jevents_repetition as rpt
      LEFT JOIN em_jevents_vevent as ev
      ON rpt.eventid = ev.ev_id
      LEFT JOIN em_jevents_icsfile as icsf
      ON icsf.ics_id=ev.icsid
      LEFT JOIN em_jevents_vevdetail as det
      ON det.evdet_id = rpt.eventdetail_id
      LEFT JOIN em_jevents_rrule as rr
      ON rr.eventid = rpt.eventid
      WHERE ev.catid IN(-1,11,12)
      AND rpt.endrepeat >= '2011-10-30 07:56:55'
      AND rpt.startrepeat <= '2011-10-30 07:56:55'
      AND ((rpt.startrepeat <= '2011-10-30 07:56:55'
      AND det.multiday=0) OR det.multiday=1)
      AND ev.state=1
      AND ev.access IN (1,1)
      AND icsf.state=1
      AND icsf.access IN (1,1)
      AND rpt.startrepeat=( SELECT MAX(startrepeat)
      FROM em_jevents_repetition as rpt2
      WHERE rpt2.eventid=rpt.eventid
      AND rpt2.startrepeat <= '2011-10-30 07:56:55'
      AND rpt2.endrepeat >= '2011-10-30 07:56:55' )
      GROUP BY rpt.eventid
      ORDER BY rpt.startrepeat DESC
      LIMIT 10
    SELECT rpt.*, ev.*, rr.*, det.*, ev.state as published, ev.created as created , YEAR(rpt.startrepeat) as yup, MONTH(rpt.startrepeat ) as mup, DAYOFMONTH(rpt.startrepeat ) as dup , YEAR(rpt.endrepeat ) as ydn, MONTH(rpt.endrepeat ) as mdn, DAYOFMONTH(rpt.endrepeat ) as ddn , HOUR(rpt.startrepeat) as hup, MINUTE(rpt.startrepeat ) as minup, SECOND(rpt.startrepeat ) as sup , HOUR(rpt.endrepeat ) as hdn, MINUTE(rpt.endrepeat ) as mindn, SECOND(rpt.endrepeat ) as sdn
      FROM em_jevents_repetition as rpt
      LEFT JOIN em_jevents_vevent as ev
      ON rpt.eventid = ev.ev_id
      LEFT JOIN em_jevents_icsfile as icsf
      ON icsf.ics_id=ev.icsid
      LEFT JOIN em_jevents_vevdetail as det
      ON det.evdet_id = rpt.eventdetail_id
      LEFT JOIN em_jevents_rrule as rr
      ON rr.eventid = rpt.eventid
      WHERE ev.catid IN(-1,11,12)
      AND rpt.endrepeat >= '2011-10-30 07:56:55'
      AND rpt.startrepeat <= '2011-12-29 23:59:59'
      AND ev.state=1
      AND ev.access IN (1,1)
      AND icsf.state=1
      AND icsf.access IN (1,1)
      AND ev.ev_id IN (1,2,3,0)
    SELECT id,parent_id
      FROM em_menu
      WHERE id = 120
    SELECT id,parent_id
      FROM em_menu
      WHERE id = 1
    SELECT extension_id AS "id", element AS "option", params, enabled
      FROM em_extensions
      WHERE `type` = 'component'
      AND `element` = 'com_content'
    UPDATE `em_session`
      SET `data` = '__default|a:8:{s:15:\"session.counter\";i:2;s:19:\"session.timer.start\";i:1319957801;s:18:\"session.timer.last\";i:1319957801;s:17:\"session.timer.now\";i:1319957815;s:22:\"session.client.browser\";s:74:\"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1\";s:8:\"registry\";O:9:\"JRegistry\":1:{s:7:\"\0*\0data\";O:8:\"stdClass\":0:{}}s:4:\"user\";O:5:\"JUser\":23:{s:9:\"\0*\0isRoot\";b:0;s:2:\"id\";i:0;s:4:\"name\";N;s:8:\"username\";N;s:5:\"email\";N;s:8:\"password\";N;s:14:\"password_clear\";s:0:\"\";s:8:\"usertype\";N;s:5:\"block\";N;s:9:\"sendEmail\";i:0;s:12:\"registerDate\";N;s:13:\"lastvisitDate\";N;s:10:\"activation\";N;s:6:\"params\";N;s:6:\"groups\";a:0:{}s:5:\"guest\";i:1;s:10:\"\0*\0_params\";O:9:\"JRegistry\":1:{s:7:\"\0*\0data\";O:8:\"stdClass\":0:{}}s:14:\"\0*\0_authGroups\";a:1:{i:0;s:1:\"1\";}s:14:\"\0*\0_authLevels\";a:2:{i:0;i:1;i:1;i:1;}s:15:\"\0*\0_authActions\";N;s:12:\"\0*\0_errorMsg\";N;s:10:\"\0*\0_errors\";a:0:{}s:3:\"aid\";i:0;}s:13:\"session.token\";s:32:\"c31e62b46a039babdac89faa0f271990\";}__eb81adcc4edfeccb1ba0f16dfe1a737f|a:1:{s:19:\"chrono_verification\";s:32:\"801cbe38ceb235c1efd10edd3ca4bf57\";}', `time` = 1319957815
      WHERE `session_id` = '73a79c93797ffa47191bc7ab1b0024ec'

20 querytypes gelogd, aflopend gesorteerd op voorkomen
SELECT tabellen:

    5 × SELECT extension_id AS "id", element AS "option", params, enabled FROM em_extensions
    3 × SELECT b.rules FROM em_assets AS a LEFT JOIN em_assets AS b ON b.lft <= a.lft AND b.rgt >= a.rgt
    2 × SELECT id,parent_id FROM em_menu
    1 × SELECT c.id AS id, a.name as asset_name FROM em_categories c INNER JOIN em_assets a ON c.asset_id = a.id
    1 × SELECT c.id FROM em_categories AS c
    1 × SELECT rpt.eventid FROM em_jevents_repetition as rpt LEFT JOIN em_jevents_vevent as ev ON rpt.eventid = ev.ev_id LEFT JOIN em_jevents_icsfile as icsf ON icsf.ics_id=ev.icsid LEFT JOIN em_jevents_vevdetail as det ON det.evdet_id = rpt.eventdetail_id LEFT JOIN em_jevents_rrule as rr ON rr.eventid = rpt.eventid
    1 × SELECT rpt.*, ev.*, rr.*, det.*, ev.state as published, ev.created as created , YEAR(rpt.startrepeat) as yup, MONTH(rpt.startrepeat ) as mup, DAYOFMONTH(rpt.startrepeat ) as dup , YEAR(rpt.endrepeat ) as ydn, MONTH(rpt.endrepeat ) as mdn, DAYOFMONTH(rpt.endrepeat ) as ddn , HOUR(rpt.startrepeat) as hup, MINUTE(rpt.startrepeat ) as minup, SECOND(rpt.startrepeat ) as sup , HOUR(rpt.endrepeat ) as hdn, MINUTE(rpt.endrepeat ) as mindn, SECOND(rpt.endrepeat ) as sdn FROM em_jevents_repetition as rpt LEFT JOIN em_jevents_vevent as ev ON rpt.eventid = ev.ev_id LEFT JOIN em_jevents_icsfile as icsf ON icsf.ics_id=ev.icsid LEFT JOIN em_jevents_vevdetail as det ON det.evdet_id = rpt.eventdetail_id LEFT JOIN em_jevents_rrule as rr ON rr.eventid = rpt.eventid
    1 × SELECT m.id, m.title, m.module, m.position, m.content, m.showtitle, m.params, mm.menuid FROM em_modules AS m LEFT JOIN em_modules_menu AS mm ON mm.moduleid = m.id LEFT JOIN em_extensions AS e ON e.element = m.module AND e.client_id = m.client_id
    1 × SELECT DISTINCT rpt.eventid FROM em_jevents_repetition as rpt LEFT JOIN em_jevents_vevent as ev ON rpt.eventid = ev.ev_id LEFT JOIN em_jevents_icsfile as icsf ON icsf.ics_id=ev.icsid LEFT JOIN em_jevents_vevdetail as det ON det.evdet_id = rpt.eventdetail_id LEFT JOIN em_jevents_rrule as rr ON rr.eventid = rpt.eventid
    1 × SELECT * FROM `em_extensions`
    1 × SELECT m.id, m.menutype, m.title, m.alias, m.path AS route, m.link, m.type, m.level, m.language,m.browserNav, m.access, m.params, m.home, m.img, m.template_style_id, m.component_id, m.parent_id,e.element as component FROM em_menu AS m LEFT JOIN em_extensions AS e ON m.component_id = e.extension_id
    1 × SELECT folder AS type, element AS name, params FROM em_extensions
    1 × SELECT * FROM em_languages
    1 × SELECT id, home, template, s.params FROM em_template_styles as s LEFT JOIN em_extensions as e ON e.element=s.template AND e.type='template' AND e.client_id=s.client_id
    1 × SELECT * FROM `em_chronoform_actions`
    1 × SELECT * FROM `em_chronoforms`
    1 × SELECT `data` FROM `em_session`

Overige tabellen:

    1 × UPDATE `em_session` SET `data` = '__default|a:8:{s:15:\"session.counter\";i:2;s:19:\"session.timer.start\";i:1319957801;s:18:\"session.timer.last\";i:1319957801;s:17:\"session.timer.now\";i:1319957815;s:22:\"session.client.browser\";s:74:\"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1\";s:8:\"registry\";O:9:\"JRegistry\":1:{s:7:\"\0*\0data\";O:8:\"stdClass\":0:{}}s:4:\"user\";O:5:\"JUser\":23:{s:9:\"\0*\0isRoot\";b:0;s:2:\"id\";i:0;s:4:\"name\";N;s:8:\"username\";N;s:5:\"email\";N;s:8:\"password\";N;s:14:\"password_clear\";s:0:\"\";s:8:\"usertype\";N;s:5:\"block\";N;s:9:\"sendEmail\";i:0;s:12:\"registerDate\";N;s:13:\"lastvisitDate\";N;s:10:\"activation\";N;s:6:\"params\";N;s:6:\"groups\";a:0:{}s:5:\"guest\";i:1;s:10:\"\0*\0_params\";O:9:\"JRegistry\":1:{s:7:\"\0*\0data\";O:8:\"stdClass\":0:{}}s:14:\"\0*\0_authGroups\";a:1:{i:0;s:1:\"1\";}s:14:\"\0*\0_authLevels\";a:2:{i:0;i:1;i:1;i:1;}s:15:\"\0*\0_authActions\";N;s:12:\"\0*\0_errorMsg\";N;s:10:\"\0*\0_errors\";a:0:{}s:3:\"aid\";i:0;}s:13:\"session.token\";s:32:\"c31e62b46a039babdac89faa0f271990\";}__eb81adcc4edfeccb1ba0f16dfe1a737f|a:1:{s:19:\"chrono_verification\";s:32:\"801cbe38ceb235c1efd10edd3ca4bf57\";}', `time` = 1319957815
    1 × SHOW FULL COLUMNS FROM `em_jev_users
    1 × DELETE FROM `em_session`
GreyHead 30 Oct, 2011
HHi wierrookje ,

The name if the file input and the entry in the File types box need to match, in your form the file input is named Foto and you have field1:jpg-jpeg-png-gif in the box, Please change this to Foto:jpg-jpeg-png-gif

Bob
wierrookje 30 Oct, 2011
thanx for the update this worked. Thx for the quick help!
zulpaedi 01 Nov, 2011
I am sorry to join with this conversation but I think this is the right topic to solve my problem.

I also have same problem when try to use file upload action. Here are debug code :
Debug Data

    Upload files
        File post array: Array ( [name] => IMG_5246.JPG [type] => image/jpeg [tmp_name] => C:\WINDOWS\Temp\phpB4.tmp [error] => 0 [size] => 515590 )
        Upload routine started for file upload by: attachment
        File : attachment extension is not allowed.



Here are setting of my files upload [GH] setting :
1. Files -> attachment:jpeg-png-gif-zip-rar-doc-docx-pdf-jpg
2. Upload Path : C:\AppServ\www\instrument\components\com_chronoforms\uploads\{form_name}\
3. File Name : attachment
4. Max Size in KB : 10000

Could some body please tell me how to solve the error and how to save the uploaded file url into database?

Thanks very much
GreyHead 01 Nov, 2011
Hi Zul,

From the error message it looks as if .JPG isn't a permitted extension and digging in the code it does look as though they are case-sensitive. Try adding -JPG to the list and see if the file uploads OK.

Bob
zulpaedi 02 Nov, 2011
Hi Bob,

Thanks for your help it's work now. Another thing is how to save the file with unique file name and save the file URL into database?
Thank you very much for your kind help.

Regards,
ZUl
stamata 02 Feb, 2012
This is definitely the topic for me. Like the first person to post here, I have the same problem.
Folder creates (in default component folder), but no file inside.

Debugger code:

Array
(
[ime_i_prezime] => f
[mesto] => d
[email] => [email]milos@sm-network.com[/email]
[fb_profil] => d
[nadimak_forum] => d
[profilslika] =>
[input_submit_10] => Pošalji
[c88303d209b6c5f4af89c469a74e7e51] => 1
[chronoform] => prijava-za-novog-nail-artista
[event] => submit
[Itemid] => 819
[option] => com_chronoforms
[view] => form
)

Uspešno ste poslali podatke kao Nail artist. Zahvaljujemo Vam se, uskoro ćete biti kontaktirani.
Debug Data

2
An email has been SENT successfully from (Lady Style)tomislav.bozovic@gmail.com to [email]tomislav.bozovic@gmail.com[/email]
Email template:

Ime i prezime: f
Mesto: d
Email: [email]milos@sm-network.com[/email]
Facebook profil (link): d
Nadimak na forumu: d
Profil slika: {profil_slika}
Najboljih 6 slika vaših radova (.zip) {galerija}
Unesite kod: {chrono_verification}
GreyHead 03 Feb, 2012
Hi stamata,

I don't see any sign of a File Upload input in your form?

Bob
stamata 03 Feb, 2012
There used to be 2 fields, now I have put only one. It`s called profilslika (profilepicture).
The other one is "Najboljih 6 slika vaših radova (.zip) {galerija}", but I have removed field for now.
There is also an action linked to field with name profilslika. File upload is enabled.

In front end of my form, I see the field, choose the file(picture), and Submit form.
I receive an e-mail with confirmation, with no visible errors. The folder creates, but it`s empty.

If you ever come to Serbia... you have a beer😉
GreyHead 03 Feb, 2012
Hi stamata,

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
stamata 03 Feb, 2012
There you go. Thank you very much.
GreyHead 03 Feb, 2012
Hi stamata,

Please put the Uplaod Files action in the OnSubmit event (not the On Load event). There are a series of videos here that will help you get started with CFv4.

Bob
stamata 03 Feb, 2012
Thank you very much, I will try and then give you feedback.
DerronW 21 Feb, 2013
How do you get the file path stored in the database?
GreyHead 22 Feb, 2013
Hi DerronW,

ChronoForms adds the file path* to the form data so that you can save it if you need to. Or, if you use the same path then you can get the image name back from the database table and add the folder path to it.

Bob

* More often it's the file URL that you need though.
sh3r3d3r 26 Feb, 2013
Hello. I have a problem with file upload.

When I get the email, the field where the file upload path should be, it's empty. No url.

Can you please help me?

Many thanks in advance.

My best regards,
Nuno
This topic is locked and no more replies can be posted.