close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

WA_DigitalFilePro

Thread began 3/08/2014 8:13 am by neel357205 | Last modified 3/12/2014 10:19 am by Jason Byrnes | 1253 views | 4 replies |

neel357205

WA_DigitalFilePro

I've added the file upload behaviour to a form. Form data is being inserted into SQL table but image file name is not being stored. One potential issue is that I need to upload ../WA_DigitalFilePro/HelperPHP.php.

Unfortunately these files have not been copied into my site folder. Where can I get them from?

Sign in to reply to this post

Jason ByrnesWebAssist

attached is a copy of the WA_DigitalFilePro/HelperPHP.php file.

if you need further help, send a copy of the form page.

Attached Files
HelperPHP.php
Sign in to reply to this post

neel357205

Please see attached file

Sign in to reply to this post

Jason ByrnesWebAssist

to troubleshoot the probelm

1) edit line 133:
header("Location: ".$WA_redirectURL);

to:
//header("Location: ".$WA_redirectURL);

2) add the following code at line 1:

<?php 
error_reporting(E_ALL);
ini_set('display_errors','on');
?>



and add this code just before the </body> tag:

<?php
if (isset($_POST["Insert"]) || isset($_POST["Insert_x"])) {
echo("insert SQL: ".$WA_Sql);
echo("<pre>");
var_dump($_FILES);
echo("</pre>");
echo WA_DFP_AllUploadsDebug();
}
?>




post back the results that this writes to the page after trying an insert.

Sign in to reply to this post

Jason ByrnesWebAssist

the files array:
array(1) {
["Product_Image"]=>
array(5) {
["name"]=>
string(23) "001_GuidanceLeaflet.jpg"
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(6)
["size"]=>
int(0)
}
}


shows error 6:
["error"]=>
int(6)


this error means that there is no upload temp dir defined in the php.ini file. you will need top contact the host to have the error corrected.

http://www.php.net/manual/en/features.file-upload.errors.php

UPLOAD_ERR_NO_TMP_DIR
Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP 5.0.3.


you will also need to contact the host to determine why you are getting the MySQL Server has Gone away error message.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...