Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Very Simple FTP Uploader

 [1/2] from: carl::rebol::com at: 11-Apr-2001 7:28


Here is a very simple FTP uploader that I use all the time... so I thought perhaps some of you might also be interested. Uploads one or more files to a web site. 0.5KB. -Carl REBOL [Title: "Simplest FTP Uploader" Version: 1.0.0 File: %ftp-up.r] site: ftp://@www.rebol.com/www/view system/schemes/ftp/passive: on pass: request-pass/user "www06201" insert next pass ":" insert find site "@" pass while [files: request-file/keep/title "Select File(s) to Upload:" "Upload"] [ foreach file files [ set [path name] split-path file flash reform ["Uploading:" name] write/binary site/:name read/binary file unview ] ]

 [2/2] from: mat:eurogamer at: 11-Apr-2001 15:48


Heya Carl, CS> Here is a very simple FTP uploader that I use all the CS> time... so I thought perhaps some of you might also CS> be interested. Uploads one or more files to a web site. CS> 0.5KB. Very handle Carl. I was looking at the examples in some (old) documentation on Rebol.com recently, having a need to transfer very large files. In fact I've recently hit upon a need to develop a HTTP/FTP transport mechanism that will attempt to resume and so on. I managed to fix the broken example and get some sort of buffered download working but I'm not having any luck on resuming. Is there some example code in the context of a buffered transfer? Thanks very much. -- Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee http://www.eurogamer.net | http://www.eurogamer-network.com