fupload is a script that'll help you in the process to upload a file or group files to a server. With it you'll be able to rename files, deleting empty spaces, put a prename and create a file with a list of links for that files automatically. This script must be used inside the Visual Fox Pro at the command window. Visual Fox Pro is a software for Windows platform. The name fupload means FoxUpload.
- The standard path is c:\fupload. If you prefer use fupload in another unit (eg. d:) open the file: fupload.prg and modify the DEFAULTFOLDER constant.
- Rename the file fupload.winscript to fupload.bat. Open it in notepad and modify your server path.
Obs.: You must configure the server path. In fupload.prg modify the constants: SERVERFOLDERPDF (server path for pdf files) and SERVERFOLDERZIP (server path for zip files).
- Put all of the files that you want to upload in the start folder
- In command window in Visual Fox Pro write the code: Set procedure to path/fupload/script/fupload.prg . If you use the standard configuration the path is c:\fupload\script\fupload.prg (now the fupload is ready to use in memory)
- Now write the code: Do fupload or if you can put a prename in the files write: Do fupload with "prename" (this command rename the files to a friendly name withou empty spaces and copy then to the tmp directory, beyond create a log file with a HTML links for that files.)
- Now you must change the link names in the log File to a human friendly link name.
- Copy the list of links and put into your page HTML, and copy this page to your web server.
- Click in the fupload.bat file in the script folder to upload the files to the server folder.
- "Welcome aboard: You’re riding the fupload!"
- You can read also a tutorial for fupload in portuguese here.
start: Where you must put your files that will be uploaded. The first step.
tmp: temporary folder where the files renamed stay before the final upload.
log: log files.
script: scripts to rename the files, create the log file, and .bat for uploads.
backup: mantain a copy of each uploaded files. The files could be deleted when necessary.
The current version is 1.2.
fupload is released under the MIT licence.
Valério Farias