9.13. swift upload


Usage: swift upload
Copy to Clipboard Toggle word wrap
Uploads specified files and directories to the given container.

Positional arguments

<container>


        Name of container to upload to.

<file_or_directory>


        Name of file or directory to upload. Specify multiple
      times for multiple uploads.

Optional arguments

-c, --changed


        Only upload files that have changed since the last
      upload.

--skip-identical


        Skip uploading files that are identical on both sides.

-S, --segment-size <size>


      Upload files in segments no larger than <size> (in
      Bytes) and then create a "manifest" file that will
      download all the segments as if it were the original
      file.

--segment-container <container>


      Upload the segments into the specified container. If
      not specified, the segments will be uploaded to a
      <container>_segments container to not pollute the
      main <container> listings.

--leave-segments


        Indicates that you want the older segments of manifest
      objects left alone (in the case of overwrites).

--object-threads <threads>


      Number of threads to use for uploading full objects.
      Default is 10.

--segment-threads <threads>


      Number of threads to use for uploading object segments.
      Default is 10.

-H, --header <header:value>


      Adds a customized request header. This option may be
      repeated. Example: -H "content-type:text/plain"
      -H "Content-Length: 4000".

--use-slo


        When used in conjunction with --segment-size it will
      create a Static Large Object instead of the default
      Dynamic Large Object.

--object-name <object-name>


      Upload file and name object to <object-name> or upload
      dir and use <object-name> as object prefix instead of
      folder name.

--ignore-checksum


        Turn off checksum validation for uploads.

Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat
Back to top