Filename templates

Rename files automatically during upload with dynamic tokens.

Add filename_template as a query parameter or JSON body field to rename files on the fly.

POST /api/upload/{connectionId}?filename_template={name}-{date}{ext}

# report.csv → report-2026-03-31.csv

Available tokens

TokenOutputExample
{original}Full filenamereport.csv
{name}Name without extensionreport
{ext}Extension with dot.csv
{date}YYYY-MM-DD2026-03-31
{time}HH-MM-SS14-30-00
{datetime}YYYY-MM-DD_HH-MM-SS2026-03-31_14-30-00
{timestamp}Unix seconds1774987800
{uuid}Random 8 charsk3x9m2pq

Examples

invoice-{date}{ext}:data.csvinvoice-2026-03-31.csv
{name}_{timestamp}{ext}:report.pdfreport_1774987800.pdf
backup-{datetime}{ext}:db.sqlbackup-2026-03-31_14-30-00.sql
{name}-{uuid}{ext}:photo.jpgphoto-k3x9m2pq.jpg

💡 Tip

If your template doesn't include an extension and the original file had one, PushFTP adds it automatically.