Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFFILE 1

Status
Not open for further replies.

cfm

Programmer
Mar 27, 2001
76
CL
hello. I am raising to archives a remote server with < cffile action=&quot;upload &quot;.... > but too much in raising is delayed. it is delayed 15 minutes in raising a file of 4 Megabytes approximately. I am in a local network of 10Mbps it is possible to be improved?

sorry, I don´t speak english....
 
Your english is very good. You have better grammar than most programmers :)

Can you tell if the server is timing out, or if the browser is? Its possible that your web browser is set to timeout after a certain amount of time has passed while waiting for a page to load.

Raising (uploading) is the same as calling a page. Your browser is sending data, and no page will be returned from the server until that data transmission is complete. If it takes longer than 15 minutes to upload the file, its possible your browser timed out and closed the connection and returned an error page.

If you can determine where the timeout is happening, whether it be the server closing the connection or the browser you can increase the time buffer.

On the other hand, HTTP is a slow protocol as im sure you know. Id restrict all uploads to less than 2 megabytes, and if there are larger files for internal purposes insist that they must be transfered over FTP.

What types of files are these? Is there a way you can compress them before uploading?

Let me know if I helped.


 
thank you very much.

but I do not believe that it is a problem of timeout.

always raises the file but it takes much. increase timeout thus:
< form action=&quot;test.cfm?requesttimeout=50000...

when server FTP receiving
the file occupies 100% of CPU because?

can be controlled that from the administrator of coldfusion?
 
You can specify a default timeout or even remove the timeout in the administrator. That can be dangerous though as you can have requests hang and never timeout. If you have more hung requests than your number of allowed simultaneous connections, your server becomes frozen.

GJ
 
ok.

but in this is single conneccion, I.
because server FTP uses 100% of CPU when I execute < cffile action=upload..?

thanks
 
hi CFM, so you're saying the file is received by the server ok, but it just takes too long? I dont know why your CPU is at 100% during this, but you are using HTTP for the transfer. This takes a long time, especially when sending to the server.

If you want to test the speed, do a local FTP upload of a file, see how long it takes. Then use your CFFILE to do the upload of the same file to the same local server, and see how long it takes. Find out what the difference in speed is.

I know that does this sort of mass uploading via HTTP well, but I don't know how we could help you improve the performance. Its always been my policy to limit HTTP uploads to 1mb.

Good luck cfm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top