close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

upload not working

Thread began 12/03/2014 2:52 pm by Sweens | Last modified 12/03/2014 4:06 pm by Jason Byrnes | 215 views | 3 replies |

Sweens

upload not working

Hi Jason

Having real problems with the attached page. On the second form, the image upload doesn't work - but a new record is created and inserted properly.

I've changed he form to use multipart/form data and that hasn't made any difference.

Previously I was getting the 'headers already sent' message, but when I removed the redirect url, the error went - I don't know if this is relevant or not (I couldn't fin any extra spaces that might be causing he headers sent message)

Hope you can throw some light on this

Thanks, as ever

Chris

Sign in to reply to this post

Jason ByrnesWebAssist

the form tag for the form that has the file field is at line 255:

<form action= "" method="post" name="fmAddQL" id="fmAddQL">


this form tag does not have the encoding type set to multipart/form-data. is should be:
<form action= "" method="post" enctype="multipart/form-data" name="fmAddQL" id="fmAddQL">


for the upload to work, the encoding type must be set.

if it is still not working after changing the upload type, leave the redirect off, and go to the bindings panel, expand the WA Uploaded Files Global Status group and add the debug info binding to the page, also, add the following code to write the files collection, and post results back:

<?php var_dump($_FILES); ?>

NOTE: both of those should be in the page body.

Sign in to reply to this post

Sweens

Hi Jason

I could have sworn I'd done that! It now works.

Sorry to waste your time - and thanks.

Cheers
Chris

Sign in to reply to this post

Jason ByrnesWebAssist

no worries.

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