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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

file upload

Thread began 4/30/2014 10:19 am by ori382079 | Last modified 5/02/2014 1:08 pm by Jason Byrnes | 1088 views | 6 replies |

ori382079

file upload

I have created an insert form to upload mp3 files. The form contains the details of the mp3 and the mp3 is to be oploaded into a directory on my server. But seems not to do it. if the file upload part is removed, it works but including it inserts no record on my database and folder. I used the error detection script to troubleshoot it but no feedback. Please see attached

Attached Files
sermon_insert.php
Sign in to reply to this post

Jason ByrnesWebAssist

You are using the dreamweaver native insert behavior which will not work with file upload.

you need to use the Data Assist insert record behavior instead.


to add the data assist insert record behavior, open the server behaviors panel, click the plus button and select WebAssist -> Data Assist -> Insert -> Insert Single Record.

for the column that you wish to store the uploaded file name, click the lightning bolt icon and select the Uploaded Files(File Field Name) -> Server File Name binding. for the other columns, select the corresponding form element binding.

Sign in to reply to this post

ori382079

Thanks Jason, I have rectified it but now the data are not inserted into the database. Please see attached file

Attached Files
sermon_insert.php
Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

ori382079

Hi Jason, I was able to sort it out. Once I uploaded the files onto the web server it works well as expected. Thanks.

Sign in to reply to this post

ori382079

However with the download side, I have the following issues with the downloaded files.
It is the same mp3 file that is downloaded in all instances, when user selects the download button in each record. the downloaded mp3 file is always the most current file in the database.

Secondly, there is also a section in my download page (listen), where user can listen to the mp3 files (that is, play the mp3 without downloading it). I used a simple <audio controls></audio> html tag , it works for the first record in the database but for the other records in the repeated region it does not work, though displayed. Please see the site:

Sign in to reply to this post

Jason ByrnesWebAssist

for the download, you have one form around the entire results page.

you need to remove that form, then for each results pod, add a form with the download button and a hidden element, in the hidden element, set the value to the file name column from your recordset.

in the download behavior, set the download file name to use the hidden element from the results page.


as for the file player not working, I cannot support a 3rd part MP3 player.

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