Bash · curl · Command-line file sharing

    Upload Files via CLI and cURL

    Upload from your terminal, share with a link.

    FileFlap provides a collection-specific Bash script for command-line uploads. It handles the upload API calls, direct storage transfers and multipart finalization so you do not need to construct signed curl requests manually.

    10 GB

    Free collection

    Up to 8

    Parallel CLI chunks

    Bash + curl

    No Python required

    How it works

    01

    Choose a collection

    Create a FileFlap collection using a browser and select an allowance that fits the total delivery.

    02

    Save the script

    In the admin page, expand Headless / CLI upload and copy the full script to fileflap-upload.sh. Keep its embedded credentials private.

    03

    Check dependencies

    Use Bash, curl 7.75 or newer, jq, file and standard GNU/Linux tools including dd. Run the commands below from the directory containing your script.

    04

    Confirm completion

    Wait for the Uploaded message and a successful exit. Check the files in your collection before sharing its public link.

    Example terminal commands

    First save the collection-specific script from your admin page. Replace the example paths with your own files or folders.

    Upload a single file

    FILE="/data/report.zip" bash fileflap-upload.sh

    Upload a folder

    FOLDER="/data/delivery" bash fileflap-upload.sh

    Use eight parallel multipart connections

    PARALLEL_PARTS=8 FILE="/data/video.mov" bash fileflap-upload.sh

    What the script does

    It sends control requests to FileFlap, transfers file data directly to storage with HTTP PUT and finalizes multipart uploads using the returned part identifiers. It includes retries for multipart batches and periodic upload heartbeats.

    Use the correct shell

    The examples are Bash commands, not native PowerShell syntax. On Windows, use a compatible environment such as WSL or Git Bash with the required tools installed. Check your curl version with curl --version.

    Plan repeatable deliveries

    Run one script per intended delivery rather than launching multiple independent scripts against the same collection. Folder mode processes files one at a time. Check exit status and the collection after an interruption to avoid duplicate uploads.

    Choose your collection size

    CLI uploads are available on free and paid plans. Choose enough capacity for all files in your collection; existing plan limits still apply.

    10 GB Free
    100 GB
    1 TB
    2 TB
    3 TB
    4 TB
    5 TB
    See full pricing

    Frequently asked questions

    Do I need an API key or a Python package?

    No separate API key or Python package is needed for the supplied script. It uses the private credentials embedded in the script copied from your collection admin page.

    Is GNU parallel required?

    No. The script uses curl’s built-in parallel transfer support for multipart chunks.

    Can I use plain curl to send a file?

    The provided Bash script is the supported workflow. It handles initialization, signed upload requests and finalization that a single generic POST command would not handle.

    Is CLI upload available on the free plan?

    Yes. The CLI is available on free and paid collections, subject to their existing storage and upload limits.

    Ready to send your files?

    Create a collection, get your CLI script and share your delivery when it is ready.

    Start a transfer

    Related use cases