1 Long: upload-file 2 Short: T 3 Arg: <file> 4 Help: Transfer local FILE to destination 5 Category: important upload 6 Example: -T file $URL 7 Example: -T "img[1-1000].png" ftp://ftp.example.com/ 8 Example: --upload-file "{file1,file2}" $URL 9 Added: 4.0 10 --- 11 This transfers the specified local file to the remote URL. If there is no file 12 part in the specified URL, curl will append the local file name. NOTE that you 13 must use a trailing / on the last directory to really prove to Curl that there 14 is no file name or curl will think that your last directory name is the remote 15 file name to use. That will most likely cause the upload operation to fail. If 16 this is used on an HTTP(S) server, the PUT command will be used. 17 18 Use the file name "-" (a single dash) to use stdin instead of a given file. 19 Alternately, the file name "." (a single period) may be specified instead of 20 "-" to use stdin in non-blocking mode to allow reading server output while 21 stdin is being uploaded. 22 23 You can specify one --upload-file for each URL on the command line. Each 24 --upload-file + URL pair specifies what to upload and to where. curl also 25 supports "globbing" of the --upload-file argument, meaning that you can upload 26 multiple files to a single URL by using the same URL globbing style supported 27 in the URL. 28 29 When uploading to an SMTP server: the uploaded data is assumed to be RFC 5322 30 formatted. It has to feature the necessary set of headers and mail body 31 formatted correctly by the user as curl will not transcode nor encode it 32 further in any way. 33