2026-06-29 19:37:57 -05:00
|
|
|
# PDF FTP Uploader
|
2026-06-30 00:27:19 +00:00
|
|
|
|
2026-06-29 19:47:38 -05:00
|
|
|
This tool sends PDF files to a server automatically. Just put your PDFs in today's folder and double-click to upload. Done.
|
2026-06-29 19:28:44 -05:00
|
|
|
|
2026-06-29 19:37:57 -05:00
|
|
|
---
|
2026-06-29 19:28:44 -05:00
|
|
|
|
2026-06-29 19:37:57 -05:00
|
|
|
## How to use it every day
|
2026-06-29 19:28:44 -05:00
|
|
|
|
2026-06-29 19:47:38 -05:00
|
|
|
1. Inside the practice folder, create a folder named with **today's date** (example: `20260629`)
|
|
|
|
|
2. Drop your PDF files into that date folder
|
|
|
|
|
3. Double-click **upload.bat** inside the practice folder
|
|
|
|
|
4. A window will open showing the progress
|
|
|
|
|
5. When it says **Done**, close the window — your files have been sent and the date folder moved to `archive\` automatically
|
2026-06-29 19:28:44 -05:00
|
|
|
|
2026-06-29 19:37:57 -05:00
|
|
|
To upload **all practices at once**, double-click **run-all.bat** in the main folder instead.
|
2026-06-29 19:28:44 -05:00
|
|
|
|
2026-06-29 19:37:57 -05:00
|
|
|
---
|
2026-06-29 19:28:44 -05:00
|
|
|
|
2026-06-29 19:47:38 -05:00
|
|
|
## Folder layout
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
Main Folder\
|
|
|
|
|
run-all.bat ← uploads all practices at once
|
|
|
|
|
run-all.ps1
|
|
|
|
|
Acme Dental\
|
|
|
|
|
upload.bat ← uploads just this practice
|
|
|
|
|
upload.ps1
|
|
|
|
|
ftp-config.ini ← this practice's server details (set up once)
|
|
|
|
|
20260629\ ← today's date folder — put PDFs here
|
|
|
|
|
report1.pdf
|
|
|
|
|
report2.pdf
|
|
|
|
|
archive\
|
|
|
|
|
20260628\ ← yesterday's folder, already uploaded
|
|
|
|
|
Bright Smiles\
|
|
|
|
|
upload.bat
|
|
|
|
|
upload.ps1
|
|
|
|
|
ftp-config.ini
|
|
|
|
|
20260629\
|
|
|
|
|
...
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
2026-06-29 19:37:57 -05:00
|
|
|
## First-time setup for a new practice
|
|
|
|
|
|
|
|
|
|
You only do this once per practice.
|
|
|
|
|
|
|
|
|
|
1. Create a new folder with the practice name (e.g. `Bright Smiles\`)
|
|
|
|
|
2. Copy these three files into it:
|
|
|
|
|
- `upload.bat`
|
|
|
|
|
- `upload.ps1`
|
|
|
|
|
- `ftp-config.ini`
|
|
|
|
|
3. Open `ftp-config.ini` in Notepad and fill in the details:
|
|
|
|
|
|
|
|
|
|
```
|
2026-06-29 19:47:38 -05:00
|
|
|
host= ← the FTP server address (given to you by the practice)
|
|
|
|
|
port=21 ← leave as 21 unless told otherwise
|
|
|
|
|
username= ← your FTP username
|
|
|
|
|
password= ← your FTP password
|
|
|
|
|
remote_path= ← the folder on their server (e.g. /incoming) — leave as / if unsure
|
|
|
|
|
tls=false ← change to true if the practice uses secure FTP (FTPS)
|
2026-06-29 19:37:57 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
4. Save the file and you're ready to go
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
## Something went wrong?
|
|
|
|
|
|
2026-06-29 19:47:38 -05:00
|
|
|
- **A file failed to upload** — the date folder stays in place. Fix the issue and double-click upload.bat again to retry.
|
2026-06-29 19:37:57 -05:00
|
|
|
- **The window closed too fast** — right-click `upload.bat`, choose *Run as administrator* and try again.
|
2026-06-29 19:47:38 -05:00
|
|
|
- **Not sure if it worked** — check the `archive` folder. The date folder only moves there after every file uploads successfully.
|