close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

File Upload not working for my website...

Thread began 10/17/2013 3:56 pm by markhaynes75235 | Last modified 10/30/2013 8:43 am by Jason Byrnes | 3359 views | 17 replies |

markhaynes75235

File Upload not working for my website...

Hi Jason et. al... I've got a File Upload page on our website that will enable job applicants to upload a PDF application. I've worked through all of the errors and don't get any, and I've changed the form to multipart for the file field element, but when I go through the steps to upload a file, nothing happens. no errors, no email notification and no file uploaded to the server. What am I doing wrong this time? I'll attach the URL privately.

Sign in to reply to this post

Jason ByrnesWebAssist

attach a copy of the upload_application.php file in a zip archive please.

Sign in to reply to this post

markhaynes75235

File Upload not working for my website...

Originally Said By: Jason Byrnes
  attach a copy of the upload_application.php file in a zip archive please.  



Thanks Jason. I've attached the upload_application.php per your request

Sign in to reply to this post

Jason ByrnesWebAssist

ok, to troubleshoot, make the following changes to your page:

1) turn on error reporting. Add the following code at line 1:

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



2) add the file upload debug info to the body of the page. go to the bindings panel, and expand the WA Uploaded Files Global Status group and add the Debug info binding to the page

3) write the session and File contents to the page.

add the following code just before the closing </body> tag:

<pre><?php var_dump($_FILES); ?></pre>
<pre><?php var_dump($_SESSION); ?></pre>
Sign in to reply to this post

markhaynes75235

File Upload not working for my website...

Hi Jason:

I followed your instructions - question I was able to write the Session content but I'm not sure what bindings comprise the file contents, so I added the Upload Files (fileUpload) bindings to the page. When I viewed the file I saw the bindings and some Undefined Index errors (see Private Message). I then had to detach the template to add the <pre>....</pre> lines before the </body> tag. After uploading the page, when I view it, I get a blank page. Where did I go wrong? I've attached the updated page.

Sign in to reply to this post

Jason ByrnesWebAssist

the only binding that was needed was the debug info binding:
<?php echo WA_DFP_AllUploadsDebug(); ?>

the other bindings are not needed

you don't need to detach the page from the template. the other code does not need to be right at the </body> tag, just as close as is possible.

Sign in to reply to this post

markhaynes75235

File Upload not working for my website...

Thanks Jason!

I've uploaded the page without all those unneeded bindings. You can check it out online. If you want, I've also attached the updated page.

Sign in to reply to this post

Jason ByrnesWebAssist

See PM

Sign in to reply to this post

markhaynes75235

File Upload not working for my website...

Thanks Jason!

That's the address from my testing server. I thought I had updated all instances of the
$WA_MailObject = WAUE_Definition(.... but apparently had not.
I made the changes and tested, but now I get the code pasted in the private message area. Looks like it still things the authentication is on.

Sign in to reply to this post

Jason ByrnesWebAssist

the cause is in the error:

SMTP: SMTP server does not support authentication

you are trying to pass authentication to a server that does not support it

Sign in to reply to this post
loading

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