Skip to content

Commit

Permalink
FC-3178 reverse change prefixing "/" on onDelete
Browse files Browse the repository at this point in the history
  • Loading branch information
justincarter committed Jan 28, 2019
1 parent 9bb98b5 commit 3bc00e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/formtools/image.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -1571,8 +1571,8 @@
<cfreturn /><!--- No file attached --->
</cfif>

<cfif (not structkeyexists(arguments.stObject,"versionID") or not len(arguments.stObject.versionID)) and application.fc.lib.cdn.ioFileExists(location="images",file="/#arguments.stObject[arguments.stMetadata.name]#")>
<cfset application.fc.lib.cdn.ioDeleteFile(location="images",file="/#arguments.stObject[arguments.stMetadata.name]#") />
<cfif (not structkeyexists(arguments.stObject,"versionID") or not len(arguments.stObject.versionID)) and application.fc.lib.cdn.ioFileExists(location="images",file="#arguments.stObject[arguments.stMetadata.name]#")>
<cfset application.fc.lib.cdn.ioDeleteFile(location="images",file="#arguments.stObject[arguments.stMetadata.name]#") />
<cfelse>
<cfreturn /><!--- File doesn't actually exist --->
</cfif>
Expand Down

0 comments on commit 3bc00e9

Please sign in to comment.