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


DFP uploads - 2 extensions jpg.jpg

Thread began 5/07/2012 3:19 pm by mark289449 | Last modified 5/07/2012 3:19 pm by mark289449 | 590 views | 0 replies |


DFP uploads - 2 extensions jpg.jpg


I found another thread but I'm just 'not sure' ...:-) showthread.php?t=21188

End result = I want to achieve AJAX style image refresh with a snippet of javascript:

<script type="text/javascript">
var reimg
window.onload=function () {
setInterval(function () {
reimg.src=reimg.src.replace(/\?.*/,function () {
return '?'+new Date()
</script>.......This works.

I have 6 upload fields.

I have a database with 6 image columns named: image1, image2, image3 . . .

Each column is populated with the filenames: image1.jpg, image2.jpg, image3.jpg, depending on the column.
I have set DFP to convert to jpg and overwrite existing files and on the second page of the wizard I have set the filename dynamically to the name of the corresponding binding (image1) coming from the recordset. (not the WA DFP bindings)

Uploads work fine into a folder created with mkdir() which gets it's name from the cust_id field of the recordset. Each user gets custom folder: /galleries/var cust_id/image1.jpg, image2.jpg etc.

My issue is that when I look into the folder the images are there but they have double extensions i.e. image1.jpg.jpg etc., and they don't display on the page.

Any light on what I may be doing wrong?


I noticed that DFP is appending the file extension, as I set DB field content to 'image1' (without extension) and the resulting uploaded file is called image1.jpg, but then the dynamic image src on my pages only gets the name of 'image1' (no file extension) and the image is still a no-show.

The overwrite doesn't seem to be functioning as it always seems to create a file 'image1.jpg.jpg' instead of overwriting the existing 'image1.jpg'

I suppose I could hard code the extensions into my pages but I was looking to get around that if possible.


I just had to put the 'actual file name I wanted' into the 'filename' field on the 2nd page of the wizard. Now it overwrites and displays.

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





Ease of use


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