Title:
cfimage creates problems with the images with the extension .PNG on Localhost
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Oleksandr Antonenko / Oleksandr Antonenko (Oleksandr Antonenko)
Created: 01/28/2015
Components: CFIMAGE
Versions: 11.0
Failure Type: Non Functioning
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / Most users will encounter
Locale/System: English / Windows 8.1/64bit
Vote Count: 12
Problem Description:
Important for me to work on the site locally and I work with images on our site with format .jpg and .png
I do not have problem with format .jpg, but i have problem with .png, when I use cfimage
THIS MY CODE with comment:
<cffile action="upload" destination="#request.siteLocalDir#img\portfolio" filefield="iphoto" nameconflict="makeunique">
<cfset Variables.newFile = "#CFFile.ServerFile#">
<!--- If image with extension .png then rewrite to .jpg --->
<cfif cffile.serverFileExt EQ "png">
<cfimage action="convert" source="#request.siteLocalDir#img\portfolio\#Variables.newFile#" destination="#request.siteLocalDir#img\portfolio\#Replace(Variables.newFile, 'png', 'jpg')#" overwrite="yes">
<cfset Variables.newFile = Replace(Variables.newFile, 'png', 'jpg')>
<!--- Now delete unnecessary file .png --->
<CFFILE action="DELETE" file="#request.siteLocalDir#img\portfolio\#CFFile.ServerFile#">
<!--- AND THIS PLACE START PROBLEM - only locally on Localhost - ERROR --->
</cfif>
File .PNG do not deleted, because ERROR
Here is the error message:
ColdFusion could not delete the file D:\ColdFusion11\cfusion\wwwroot\ant4web\test\609\img\portfolio\b\ for an unknown reason.
Type coldfusion.runtime.CfErrorWrapper
I can not even delete the file (PNG) manually, but I can after restart ColdFusion server
This problem I have about 2 year
ColdFusion 9 also had this problem.
I have used several different of computers and Windows 7 and Windows 8.1
Nothing helped
Now write HERE
Give me an answer
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3929327
External Customer Info:
External Company:
External Customer Name: Oleksandr
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: