Skip to content

Commit

Permalink
FC-3082 avoid files being written to disk twice due to validation
Browse files Browse the repository at this point in the history
  • Loading branch information
justincarter committed Sep 2, 2016
1 parent ada287c commit 9925a9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/formtools/file.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@
bArchive=application.stCOAPI[arguments.typename].bArchive and (not structkeyexists(arguments.stMetadata,"ftArchive") or arguments.stMetadata.ftArchive),
stFieldPost=arguments.stFieldPost
) />
<!--- validation cleanup to avoid additional/duplicate file uploads from further field validation processing in this request --->
<cfset structDelete(FORM,"#stMetadata.FormFieldPrefix##stMetadata.name#NEW")>
<cfset form["#stMetadata.FormFieldPrefix##stMetadata.name#"] = stResult.value>
</cfcase>

<cfdefaultcase><!--- value="flash" --->
Expand Down

0 comments on commit 9925a9b

Please sign in to comment.