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

Exchange file on upload using original filename?

Thread began 12/23/2011 5:49 am by steelace396915 | Last modified 12/27/2011 1:43 pm by steelace396915 | 665 views | 2 replies

steelace396915

Exchange file on upload using original filename?

Hi

I have a form uploading files correctly to server and write filename to database. I have choosen a prefix for the files which are profile images for users and set filenames to increment for each new user added. (Ex: prefix_1.png, prefix_2.png and son on). This all works fine. I also have a form where users can update their information when logged in. From there they are able to update their standard user image to one of their own choice. It works fine but the problem is a new image is added on upload and I would like the old image to be replaced with the new using the same original filename. (Ex: original file: prefix_1.png new imagefile uploaded on update becomes: prefix_1.png)
In the upload file server behaviour on the update page I have set "if file exist" to overwrite and on the second tab/dialog Ive tried almost every setting except for the default file field where Ive inserted what was said in the guide so that should be correct at least!
Ive enclosed 4 images of the insert and update server behaviour dialogs so its easier to understand how I set the options! Could someone please check and see what's wrong? I just want to update the previously inserted image with a new one but use the same original filename!

Regards,
Martin J.

Attached Files
images.zip

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