close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Using old skool DFP 1 and CF

Thread began 5/17/2009 12:42 am by jmbishop17420 | Last modified 7/08/2009 3:45 pm by Anna Robinson | 2025 views | 8 replies |

jmbishop17420

Using old skool DFP 1 and CF

I'm implementing DFP 1 with Coldfusion and it throws an error in the HelperCF file because it doesn't appear to like the location of

<cfset var sessionName = pageName & "_" & fileField >

When I move this within the function the file upload works fine as long as I'm only uploading the same file. If I try a different file it will upload it and write every other field value to the database but not the filename.

Any ideas where this line of code should go?

Thx,
J B

Sign in to reply to this post

Ray BorduinWebAssist

Not offhand. Please submit a support incident with a copy of your page and somebody can look into it with you.

What happens when you leave the code in the original location?

Sign in to reply to this post

jmbishop17420

The error I get is:

Local variable sessionName on line 52 must be grouped at the top of the function body.

And then this is the line at 52:

<cfset var sessionName = pageName & "_" & fileField >

Here's the function up to line 52

<cffunction name="WA_DFP_UploadFile">
<cfargument name="statusName" type="string" required="yes" >
<cfargument name="fileField" type="string" required="yes" >
<cfargument name="defaultFileName" type="string" required="yes" >
<cfargument name="folderPath" type="string" required="yes" >
<cfargument name="newFileName" type="string" required="yes" >
<cfargument name="fileExistsAction" type="string" required="yes" >
<cfargument name="renameFileTo" type="string" required="yes" >
<cfargument name="fileSizeLimit" type="numeric" required="yes" >
<cfargument name="limitToImages" type="boolean" required="yes" >
<cfargument name="maxImageWidth" type="string" required="yes" >
<cfargument name="maxImageHeight" type="string" required="yes" >


<cfset var newFileNameDefault = "[FileName]" >
<cfset var renameIncrementToken = "[Increment]" >
<cfset var fullFolderPath = "" >
<cfset var fileInfo = "">
<cfset var serverFolderPath = "" >
<cfset var serverFilePath = "" >
<cfset var attemptedServerFilePath = "" >
<cfset var attemptedFileName = "" >
<cfset var separator = "" >
<cfset var tk = "" >
<cfset var imgObj = "" >
<cfset var status = WA_DFP_UploadStatus[statusName] >
<cfset var passedValidations = True >
<cfset var pageName = ReReplace(GetFileFromPath(CGI.SCRIPT_NAME),"\.[^.]*$","") >
<cfif IsNumeric(Left(pageName, 1))>
<cfset pageName = "file_" & pageName >
</cfif>

<cfset var sessionName = pageName & "_" & fileField >

Sign in to reply to this post

Ray BorduinWebAssist

Please post a support incident.

I think somebody will need to work with you to debug this problem.

What happens when you remove the word "var"?

Sign in to reply to this post

jmbishop17420

I did post a support ticket and John helped a bit. The problem seems to be that when a unique file is uploaded for the first time it uploads successfully but it's file name isn't written to the database. When the same file is uploaded a second time everything goes as expected and the file name with an increment on it is written to the database.

Ideas?

Sign in to reply to this post

Ray BorduinWebAssist

What is your incident number? Was a bug logged?

Sign in to reply to this post

jmbishop17420

My support ticket number is #94702

Thx,
Jerrod

Sign in to reply to this post

jmbishop17420

It's been almost 2 months since my initial support ticket was filed and a month since I was informed the issue was being escalated to a senior developer.

Should I abandon hope of using DFP 1.0 with Coldfusion and find another solution?

Jerrod

Sign in to reply to this post

Anna Robinson

Elevating Your Ticket

We've experienced a high volume of tickets moving into the engineering realm and while we were researching your ticket, we didn't get to the point of solving it yet. I apologize that there was no response in the meantime; there should have been. We just moved around some resources so that we can work through the issue with you today or tomorrow. Please bear with us.

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