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

About Image Files

Thread began 4/29/2011 10:18 am by cherry8723424721 | Last modified 4/29/2011 12:22 pm by cherry8723424721 | 1018 views | 5 replies |

cherry8723424721

About Image Files

Hi:

I'm successfully uploading image files to a specific directory and uploading the corresponding file name to a Php DB using Data Assist. However, I still have a couple of questions:

1) How can I have Data Assist store the record ID as file name in the DB? Right now it's storing the original file name, which is not what we want.

2) How can I display those image files once they're stored? Is there a Data Assist or a UE function that helps me do that?

Thank you for your attention.

Sign in to reply to this post

Jason ByrnesWebAssist

1) the order of operation is to a) Upload the File then b) create the new record.

Since the record ID is not known at the time of upload, the record ID cannot be used as the file name.

2) In the "How to apply Digital File Pro to DataAssist Insert and Update pages" tutorrial on the DataAssist support page, see the "Displaying your upload images on DataAssist pages" section.

Sign in to reply to this post

cherry8723424721

Jason:

Thank you for your reply.

1) Understood your point about the record ID. Is there a way to double check that the file name is not a duplicate of an existing file name in the DB before uploading?

2) I'll read that tutorial.

Thank you for your attention

Sign in to reply to this post

cherry8723424721

Jason:

The tutorial was clear enough and I'm displaying the image files quite well. That's a very user-friendly little widget.

Now I would just need to know how to avoid file-name duplicates in the DB. Any ideas on how to do that?

Thank you for your attention.

Sign in to reply to this post

Jason ByrnesWebAssist

the file upload behavior has settings to address file name duplication in the If File exists section.


you have the option of overwriting the existing file, renaming the existing file, renaming the new file or skip the upload.

I would suggest renaming the new file.

Sign in to reply to this post

cherry8723424721

Jason:

Yes. In the "If" option I renamed the file to the user's email address, which has to be unique.

Thank you for your attention.

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