close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to add file upload?

Thread began 12/12/2012 5:04 pm by Sally | Last modified 12/13/2012 11:06 am by Jason Byrnes | 750 views | 7 replies |

Sally

How to add file upload?

I must be doing something wrong. I've created my form with the field Path for the file I want to upload. I've selected the field, gone to WebAssist>File Manipulation>Upload and added Path in the File Field. In the Upload Folder of used the bolt to select Path in the recordset of the table.

What I'm expecting is when I use the form and put my cursor in the Path field that it will allow me to browse to my local drive and select a file to upload. But nothing happens.

Can you tell me where I'm going wrong or point me to a tutorial?

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

to add a file field to your form go to Insert -> Forms -> File Filed

in the upload behavior select the file field, in the upload path, enter the path to the folder you would like the file to be uploaded to.

Sign in to reply to this post

Sally

It's been a while since I did this, so I started over and this time in the DataAssist Pages wizard created a field (FileName) with a file type of 'file' and also in the wizard picked which folder it was to upload to. I also had it create the table for me, in case I had done something wrong there.

The form seems to work just fine - that is, no error messages, the status bar gives the uploading percentages. But when it's all done it stays at the insert page, nothing is uploaded and there's no entry in the database table.

I've run through this a few times but can't seem to get it to work.

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the page please.

Sign in to reply to this post

Sally

Here's the Insert page. I haven't been able to test the others yet since I can't upload.

Thanks, Jason.

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

Jason ByrnesWebAssist

hmmm, the code looks correct.

to trouble shoot, make the following changes:

at line 1 add the following code:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
if(
$_SERVER['REQUEST_METHOD'] == "POST") {
var_dump($_FILES);
}
?>



post back the results after trying the upload again.

Sign in to reply to this post

Sally

After it's done, above the Insert form, it says
array(0) { }

Sign in to reply to this post

Jason ByrnesWebAssist

That's not right, hmmm, i'll need to look at this directly.

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

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