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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Wondering if someone can help me troubleshoot...

Thread began 4/14/2010 3:09 pm by dan361748 | Last modified 4/16/2010 11:55 am by Jason Byrnes | 912 views | 5 replies |

dan361748

Wondering if someone can help me troubleshoot...

Hi - I've got an insert record form created by DataAssist.

I've replaced the text field for the image file with a file field.

I've applied the DFP behaviour and chosen the file field from the Insert Form list.

I've gone to the Insert Record behaviour and for the file field chosen Server File Name from the bindings (it was under WA Upload Files (*.((isset($_FILES(...

When I submit the form nothing is uploaded to the upload directory (I've checked permissions in that directory). Also nothing is inserted into the file field in the db.

I went to the bindings tab and dragged the 'error message' binding to my page to see if that would give me more info but it does not. When the form is submitted it returns to the detail page for the new insert.

Any help or guidance would be really appreciated.

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of your page so I can examine the code.

Sign in to reply to this post

dan361748

Thanks Jason - here is the file.

Attached Files
admin_Articles_Insert.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

change line 138:

php:
WA_DFP_UploadFiles("WA_UploadResult1", "".((isset($_FILES["article_imagefile"]))?$_FILES["article_imagefile"]["name"]:"")  ."", "0", "", "true", $WA_UploadResult1_Params);



to:

php:
WA_DFP_UploadFiles("WA_UploadResult1", "article_imagefile", "0", "", "true", $WA_UploadResult1_Params);
Sign in to reply to this post

dan361748

Thanks - I made the change and it works now.

Was this something I did wrong in the set up?

Also for the update page do I make the same change?

Many thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

I cant say why the code was written that way, it should just use the file field name (article_imagefile), not the Files collection reference to it (((isset($_FILES["article_imagefile"]))?$_FILES["article_imagefile"]["name"]:"")


I'm trying to reproduce the problem, but I cant get it to happen using DWCS3 and DWCS4 on any of my computers.

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