close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

File name not being stored

Thread began 1/03/2022 11:56 pm by DeanCollins | Last modified 1/04/2022 7:21 pm by Ray Borduin | 192 views | 10 replies |

DeanCollins

File name not being stored

I've applied the "Insert File Manager Field" to a file field in the insert and update records pages. The file uploads, but the file name doesn't get stored. Data from all other fields gets stored.

This must be something really simple that I'm just not seeing. I've attached some files.

Thanks!

Attached Files
jobs_docs_insert.php
jobs_docs_update.php
Sign in to reply to this post

Ray BorduinWebAssist

Since you are using the file manager, you don't need a file upload server behavior on the page at all. And you can refer to the file upload path from the form element directly.

On the insert page, you can update the Insert server behavior and bind the edfile column directly to the file1 form element.

Then you can delete the file upload server behavior from the page.

Sign in to reply to this post
Did this help? Tips are appreciated...

DeanCollins

Okay, got rid of the file manager. It seems like some years ago I saw a post on binding and inserting a hidden field so that the document name still shows on the update page. Can someone direct me to those instructions. Can't seem to find them.

Sign in to reply to this post

Ray BorduinWebAssist

The file name should still show on the update page. Can I get a link to the page to see what you are looking at? I may need FTP access to fully debug.

Sign in to reply to this post
Did this help? Tips are appreciated...

DeanCollins

Details in the private message.

Sign in to reply to this post

Ray BorduinWebAssist

You can just drag and drop the value from the bindings panel to display it on the page.

Sign in to reply to this post
Did this help? Tips are appreciated...

DeanCollins

Which value, and where do I drop it (on the file input box)?

Sign in to reply to this post

Ray BorduinWebAssist

The field that it is stored in from your update recordset.

Sign in to reply to this post
Did this help? Tips are appreciated...

DeanCollins

Sigh. I'm too dense for this, I guess. If I insert the filename as value, it still doesn't on the update page.

<div class="lineGroup"> <label for="edfile" class="sublabel" > Document File:</label>
<input name="edfile" type="file" id="edfile" tabindex="4" value="<?php echo($WADAjobs_docs_update->getColumnVal("edfile")); ?>" size="30" title="Please enter a value.">
</div>

Sorry for being such a bother.

Sign in to reply to this post

Ray BorduinWebAssist

You can't put it in the file field... you can just put it on the page. For security reasons you can't re-populate a file field.

Sign in to reply to this post
Did this help? Tips are appreciated...
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...