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

Upload Not Working

Thread began 6/20/2012 10:57 am by gpaul | Last modified 6/20/2012 1:00 pm by gpaul | 790 views | 8 replies |

gpaul

Upload Not Working

Using file manipulation, file name is inserted into DB, file is not uploaded to the server. Find attached the helper and the upload files.

I notice when I go through the wizard, when I specifiy a folder (images), the input box shows:

./

I went through the tutorial and did not solve the problem,

Would appreciate some help.

Gary

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

Jason ByrnesWebAssist

change the forms encodeing type to multipart/form-data for file upload.



change:

php:
<form  action="attorney_Insert.php" method="post" name="WADAInsertForm" id="WADAInsertForm">



to:

php:
<form  action="attorney_Insert.php" method="post" enctype="multipart/form-data" name="WADAInsertForm" id="WADAInsertForm">
Sign in to reply to this post

gpaul

Jason

Thank you for your quick reply, I'm sorry but I should have seen that.

However it did not work. It does not list the file names in the DB, it did however upload one file (should have been 2) to the server named .jpg.

Gary

Sign in to reply to this post

Jason ByrnesWebAssist

in the upload behavior, you have set the file name to use the Server File Name binding.

this is circular logic.

The Server File Name variable is created once the file is uploaded, and renamed if necessary based on the If File Exists Settings. It is created by the upload behavior, and does not exist until the upload is complete. this binding cannot be used as a setting in the upload behavior.

in the upload behavior, set the File Name the default "[FileName]" instead.

the server file name binding should be used in the insert record behavior, not the upload behavior.

Sign in to reply to this post

gpaul

Thank you again,

That did not fix it. The file name is not listed in the DB and image file is now uploaded to the server, but as [filename].jpg, [filename]_1.jpg

Gary

Sign in to reply to this post

Jason ByrnesWebAssist

sounds like you set the file name to [filename] and not [FileName] php is case sensitive.


also in your initial file, you had been using the Form bindings for the file columns, and not the Server File Name bindings that you should be using.

in the insert record behavior, make sure to use the Server File Name bindings for the file columns.

Sign in to reply to this post

gpaul

You were correct, I changed to [Filename] Still uploading to server as [Filename].jpg and still not inserting filename into database.

"also in your initial file, you had been using the Form bindings for the file columns, and not the Server File Name bindings that you should be using.

in the insert record behavior, make sure to use the Server File Name bindings for the file columns. "

I'm sorry, I do not know what you mean, could you please specify?

I have uploaded the newer files for you to see.

Gary

Attached Files
helperphp-new.zip
Sign in to reply to this post

Jason ByrnesWebAssist

please be aware of case.


you are setting the file name to:
[Filename]

it should be:
[FileName]

Capitol F and Capitol N, you are using lower case for the n.


you need to edit the insert record behavior. for the columns that you wish to store the file names in, Click the lightning bolt icon, and expand the WA Uploaded Files (File Field Name) binding group, (where File Field Name is the name of the file field) and select the Server File Name binding.

Sign in to reply to this post

gpaul

Jason

Thank you for your patience and help, it is working now.

Gary

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