close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

files not uploading

Thread began 12/02/2013 6:03 am by Jamie | Last modified 12/02/2013 12:04 pm by Jason Byrnes | 323 views | 5 replies |

Jamie

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

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

Jamie

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

Sign in to reply to this post

Jason ByrnesWebAssist

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.

Sign in to reply to this post

Jamie

Ok thanks Jason. Will probably start from scratch with the 2 pages.

Sign in to reply to this post

Jason ByrnesWebAssist

theres no need to start form scratch, they are working as intended.

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...