We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Add-ons
Forms, Form Processing & Anti-Spam
eForm
Search
Problem with upload
12 Posts
goddang
Reply #1,
19 years, 6 months ago
I’ve been playing with eForm to get it to upload a file to a database using eForm2db.
But I can’t get it to work.
If I use:
$dbTable['file1'] = $fields['file1'];
I just seem to get the filename. How do I get the data?
Thanks in advance.
1,010 Posts
TobyL
Reply #2,
19 years, 6 months ago
The $fields array only stores the original file name of the uploaded file. The temporary location and other properties of the uploaded file can be found in the super global $_FILES.
See the php documentation for more details about the $_FILES variable
http://au3.php.net/manual/en/reserved.variables.php
http://au3.php.net/manual/en/features.file-upload.php
eForm
|
eForm support
|
eForm @ wiki