Copy link to clipboard
Copied
I am getting an error with the following code.
Attribute validation error for tag CFFILE. | |
The value of the attribute source, which is currently C:\**\**legacyequineauction.com\httpdocs\fullsize_thumbs1\testpicturesfile.jpg, is invalid. | |
The error occurred in C:\**\**\legacyequineauction.com\httpdocs\sell\item_submit.cfm: line 317 | |
315 : <cffile action="rename" 316 : SOURCE = "#directory2##session.picture2#" 317 : DESTINATION = "#directory2##session.itemnum##right(session.picture2,4)#"> 318 : </cfif> 319 : </cfif> |
<cfif #session.picture2# NEQ "">'#session.itemnum##right(session.picture2,4)#'<cfelse>'#session.picture2#'</cfif>,
This is suppose to rename the testpicturefile.jpg to the the itemnumber.jpg
The site url is http://www.legacyequineauction.com/sell/item_submit.cfm?mode=sell&CFID=8521&CFTOKEN=59279630
i don't know if the \httpdocs\ is messing this up or not.
thanks in advance
Copy link to clipboard
Copied
larkinh5 wrote:
i don't know if the \httpdocs\ is messing this up or not.
I don't know if it is or not either. I don't know what your directory strucute is.
C:\**\**legacyequineauction.com\httpdocs\fullsize_thumbs1\testpicture sfile.jpg
ColdFusion is saying that is not a valid directory path and|or file name. Do you believe that it is? Have you confirmed whether you or ColdFusion is correct?
Copy link to clipboard
Copied
I didn't think of that, but I just checked that and it is the correct path.
the picture file (testpicturefile.jpg) is there so it's getting uploaded, just not renamed.
From the coding in this page. It's suppose to insert the information into the database and rename the image.
The page before this (preview page) has the following code
I figured it out. It was the httpdocs messing it up. i changed sell to httpdocs/sell and it was fixed.