The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Uploading File - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Uploading File (/showthread.php?tid=658)



Uploading File - ra1874 - Apr 15th, 2010

Hello all,

I have a problem with getting the upload to work properly when I submit my form (http://equaloppemployment.com/forms/files/jobpost.html). I've included this in my file:
<form action="http://equaloppemployment.com/forms/process.php" method="post" enctype="multipart/form-data">

However, I am able to upload the file via the Form Tools admin interface.


After I submitted my form, I checked the database and all the fields are stored correctly except the "file" field. It remains empty even though I've already specified a file when I submit my form.

What should I do?

Thanks in advance,
Renold


RE: Uploading File - Ben - Apr 18th, 2010

Hi Renold,

Is this an API form or a POST form? If it's an API form, make sure the $params variable you're passing to the ft_api_process_form() function contains the following key-value pair: "file_data" => $_FILES

Also, when testing it, are you trying to upload the same file as the one that was successfully uploaded via the Form Tools UI?

- Ben


RE: Uploading File - ra1874 - Apr 28th, 2010

(Apr 18th, 2010, 4:54 PM)Ben Wrote: Hi Renold,

Is this an API form or a POST form? If it's an API form, make sure the $params variable you're passing to the ft_api_process_form() function contains the following key-value pair: "file_data" => $_FILES

Also, when testing it, are you trying to upload the same file as the one that was successfully uploaded via the Form Tools UI?

- Ben

Hello Ben,

It's a POST form.
I was trying to upload the same file that was successfully uploaded using the Form Tools UI.

What am I missing?

Thanks,
Renold


RE: Uploading File - Ben - May 1st, 2010

Hey Renold,

If it's working via the Form Tools interface, that means it's not a server configuration problem - which is very nice! That's usually the biggest hurdle.

I'd check the name attribute of the file upload field in your form is *exactly* the same as the value shown in the Edit Form -> Fields tab. Also, check it's alphanumeric with no spaces, dashes or anything else.

Other than that... I'm not sure! Let me know.

- Ben