File Uploader script
This script will upload files from a local folder OR network folder to a remote FTP server or into another local/network folder.
Installation instructions
- Download the Files Upload program (There is a link below)
- Unpack into some local folder of your choice
Running the script in test mode
To run Files Uploader in test mode you need to do following steps:
- run command line prompt (Win+R)
- change folder to location where you unpacked Files Uploader script using the following command:
cd "path to folder with unpacked script"
- run following command:
run.cmd test
. Check output for any errors
Jobs configuration
To configure Files Uploader please do following steps:
- Go into the folder with Files Uploader script and find the file called
config.example.php
- Open this file in WordPad/notepad or other text editor and change the settings as descirbed in the next section
- Rename (or Save as) example file into
config.php
Running the script
To run Files Uploader in live mode you need to do following steps:
- run command line prompt (Win+R)
- change folder to location where you unpacked Files Uploader script using the following command:
cd "path to folder with unpacked script"
- run following command:
run.cmd
. Check output for any errors
If you want to run it periodically you can use Windows Scheduled Tasks service. For LINUX use a CRON job.
Configuration file
Here is the screenshot of example configuration file with notes:
Image notes:
1 |
Target server settings:
-
protocol - either
ftp or sftp
-
hostname - hostname or IP address of the server
-
login - FTP or SFTP username
-
password - FTP or SFTP password
|
2 |
Notification settings:
-
error - list of e-mail addresses to send error report
-
success - list of e-mail addresses to send success upload report
-
all - list of e-mail addresses to send all script logs
|
3 |
Mail server parameters. Please check your mail server settings to fill this section.
|
4 |
Source location settings:
-
protocol - must be
file for now
-
hostname - must be
local for now
-
path - path to files
-
backupPath - path to backup folder. If not specified - files will be removed from source location after uploading
-
fileMask - regular expression for file mask
|
All settings are explained on the screnshot.
Where to get the script
You can download it from below link:
FilesUploader.zip
WARNING Please do not save download url into your bookmarks because it can be changed once new version will be released.
Please always download files from this page.