files not uploading
Hey Jason
Struggling to work out why the 2 attached files dont upload either the CompanyLogo or the MemberPic files but the filenames are being updated within the db
Thanks and hope you had a great Thanksgiving...
Jamie
Hey Jason
Struggling to work out why the 2 attached files dont upload either the CompanyLogo or the MemberPic files but the filenames are being updated within the db
Thanks and hope you had a great Thanksgiving...
Jamie
to troubleshoot, edit the update and insert server behaviors so that they do not redirect.
then open the bindings panel, expand the WA Uploaded Files Global Status binding group and add the Debug info binding to your page
next turn on error reporting by adding the following code at line 1:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>
and dump the files contents by adding the following code at the end of the page before the closing <body> tag:
<?php var_dump($_FILES); ?>
test the upload again and post the results of the debug info and files collection.
Hi Jason
On the update page the
array(2) { ["CompanyLogo"]=> array(5) { ["name"]=> string(14) "motley-001.jpg" ["type"]=> string(10) "image/jpeg" ["tmp_name"]=> string(14) "/tmp/phpSBZcos" ["error"]=> int(0) ["size"]=> int(114817) } ["MemberPic"]=> array(5) { ["name"]=> string(14) "motley-007.jpg" ["type"]=> string(10) "image/jpeg" ["tmp_name"]=> string(14) "/tmp/phpliVOnM
have attached the data from the debug is attached in 'update.text'
On the insert page
array(2) { ["CompanyLogo"]=> array(5) { ["name"]=> string(14) "motley-002.jpg" ["type"]=> string(10) "image/jpeg" ["tmp_name"]=> string(14) "/tmp/phpz6PBPU" ["error"]=> int(0) ["size"]=> int(173130) } ["MemberPic"]=> array(5) { ["name"]=> string(14) "motley-008.jpg" ["type"]=> string(10) "image/jpeg" ["tmp_name"]=> string(14) "/tmp/php8dnTkk"
and have attached the debug info in insert.txt
Cheers
Jamie
the debug info both shows a status code of 1:
statusCode : 1
meaning the files are being uploaded, the debug info says the upload is working fine.
Ok thanks Jason. Will probably start from scratch with the 2 pages.
theres no need to start form scratch, they are working as intended.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.