tracker issue : CF-3739708

select a category, or use search below
(searches all categories and all time range)
Title:

Coldfusion 10 / Windows 2012 R2 server and large file upload into a network directory

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Amédée LEGAL / Amédée LEGAL (alean44)

Created: 04/09/2014

Components: File Management

Versions: 10.0

Failure Type: Performance Issue

Found In Build/Fixed In Build: Final / CF11 Update5

Priority/Frequency: Minor / Unknown

Locale/System: English / Win 2008 Server x64

Vote Count: 0

Listed in the version 11.0.05.293506 Issues Fixed doc
Problem Description: 

Upload small file (10Mo) or large file (100Mo) from Coldfusion 9 or 10 on Windows 2003 Server into a network directory is Ok (<cffile action="UPLOAD" filefield="file" destination="\\192.168.0.X\myNetworkDirectory\" nameconflict="MAKEUNIQUE">)

Upload small file (10Mo) from Coldfusion 10 on Windows 2012 R2 server into a network directory is Ok but with the same server and same destination directory and a large file (100Mo)  returns an error after a long time. Coldfusion succeed in copying the file but after a long long time... too long to return a correct answer.

With the same server an the same file a local CFFILE UPLOAD and  then a CFFILE MOVE is OK.
<cffile action="UPLOAD" filefield="file" destination="C:\tempUpload\" nameconflict="MAKEUNIQUE"> 
<cffile action="move" destination="\\192.168.0.X\myNetworkDirectory\myfile" source="C:\tempUpload\myfile">

Steps to Reproduce:

Actual Result:

Expected Result:

Any Workarounds:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3739708

External Customer Info:
External Company:  
External Customer Name: alean44
External Customer Email:  
External Test Config: My Hardware and Environment details: Coldfusion 10 entreprise Windows 2012 R2

Attachments:

Comments:

When file is directly uploaded to destination it inherits the permissions of destination. When we move a file from say temp dir to destination file retains its permissions. So there is a difference between the two operations. Move internally renames the file and is faster than file copy which happens when file is directly uploaded. Since uploaded file should inherit permissions of destination directory we cannot replace this operation with file move for performance. Although we have improved the performance for file copy and it should be roughly 30 % faster. This will make upload to network drive faster than what it already is but won't match moving file from temp location. (Comment added from ex-user id:sandeepp)
Comment by Adobe D.
12745 | December 19, 2014 02:19:29 AM GMT
The fix for this bug is available in the pre-release build of ColdFusion 11 Update 5
Comment by CFwatson U.
12746 | February 20, 2015 09:25:08 AM GMT
Unable to reproduce the slow file upload issue to network share. The following code only took 28 seconds to transfer a 200MB file between 2 Windows 2012 R2 servers: <cfif FORM.keyExists("submit")> <cfoutput>#now()#</cfoutput> <cffile action="upload" filefield="filedata" destination="\\1.2.3.4\myshare\" nameconflict="overwrite"> <cfoutput>#now()#</cfoutput> </cfif> <form method="post" enctype="multipart/form-data"> <input type="file" name="filedata"> <input type="submit" name="submit" value="submit"> </form> Thanks!, -Aaron
Comment by External U.
12747 | November 19, 2015 03:06:56 AM GMT