close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Can't Upload and download on the same page

Thread began 2/11/2011 3:24 pm by Brad Lawryk | Last modified 2/14/2011 5:16 pm by Jason Byrnes | 2951 views | 10 replies |

Brad Lawryk

Can't Upload and download on the same page

I just discovered that you cannot have an upload form and a list of the downloads on the same page. Why?

Downloads would always want to download the actual php page instead of the file. Soon as I commented out the Upload form the Downloads worked.

Brad

Sign in to reply to this post

Jason ByrnesWebAssist

Most likely the upload and download behaviors are using the same trigger.


You will need to use a unique trigger for the upload and the download behavior in order for them to work on the same page.

Sign in to reply to this post

Brad Lawryk

Originally Said By: Jason Byrnes
  Most likely the upload and download behaviors are using the same trigger.


You will need to use a unique trigger for the upload and the download behavior in order for them to work on the same page.  



Thats what I figured but no dice. I tried setting each one to trigger on the specific button press even and it still didn't work.

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of your page please.

Sign in to reply to this post

Brad Lawryk

I can't send a copy because its an internal government site. I will try recreating it with different data on my own server.

Sign in to reply to this post

Brad Lawryk

Actually, here is one I tried doing up as a prototype and upload test for a customer who wanted to see upload speeds.

uploadtest.php

Brad

Sign in to reply to this post

Jason ByrnesWebAssist

can you send a copy of the actual php page please.

Sign in to reply to this post

Brad Lawryk

Here you go ...

Attached Files
uploadtest.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the issue in this file is that you have bound the download to use the doc_file file field as the download file source, you can only download a file that exists on the server.


Another issue is that The doc_file file field is not part of the same form as the download button that triggers the download.

Sign in to reply to this post

Brad Lawryk

But the file does exist on the server ... and the download is set to a hidden field in the download form exactly like your instructions say.

If I comment out the upload form the download works perfectly.

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