###User Defined Function###
_FTP_ProgressUpload

###Description###
Uploads a file in Binary Mode and shows a Progress window or by Calling a User defined Function

###Syntax###
#include <FTPEx.au3>
_FTP_ProgressUpload ( $hFTPSession, $sLocalFile, $sRemoteFile [, $sFunctionToCall = ""] )


###Parameters###
@@ParamTable@@
$hFTPSession
	as returned by <a href="_FTP_Connect.htm">_FTP_Connect()</a>.
$sLocalFile
	The local file to create.
$sRemoteFile
	The remote source file.
$sFunctionToCall
	[optional] A function which can update a Progressbar and react on UserInput like Click on Abort or Close App. (More info in the end of this comment)
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	1.
Failure:	0 and sets the @error flag to non-zero.
@error:	-1 - Local file couldn't be opened
	-3 - Create File failed
	-4 - Write to file failed
	-5 - Close File failed
	-6 - Download aborted by PercentageFunc and Return of Called Function
@@End@@


###Remarks###
Information about $sFunctionToCall:
	Parameter: $iPercentage - The Percentage of Progress
	Return Values: Continue Download - 1
		Abort Download    - 0 Or negative
		These Return Values are returned by <a href="_FTP_ProgressUpload.htm">_FTP_ProgressUpload()</a>, too, so you can react on different Actions like Aborting by User, closing App or TimeOut of whatever


###Related###
None.


###Example###
@@IncludeExample@@
