# Uploading multiple files using CURL

**URL:** <https://travis-ci.community/t/uploading-multiple-files-using-curl/10660>\
**Category:** Travis CI Discussions & Feedback\
**Tags:** build-env, travis-build\
**Created:** [November 23, 2020, 4:49am UTC](https://travis-ci.community/t/uploading-multiple-files-using-curl/10660 "2020-11-23T04:49:33Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [November 23, 2020, 10:47am UTC](https://travis-ci.community/t/uploading-multiple-files-using-curl/10660/3 "2020-11-23T10:47:52Z")

</div>

1. You can `cd`/`pushd` to the appropriate directory so that the paths are just files. E.g. in a subshell so that the current directory in the main shell is not affected:

2. To upload everything in the same `curl` invocation, [I constructed a comma-separated list in curly braces (which `-T` requires to upload multiple files) with a Perl script](https://travis-ci.community/t/failing-to-run-compiled-python-extension/7456/7). For your case, that would be:

* * *

Also note that `.tar`s are uncompressed. You should probably pass `-z`/`-j`/`-J` to `tar -c` and/or change the extension to prevent confusion if you already do.

---

_[View the full topic](https://travis-ci.community/t/uploading-multiple-files-using-curl/10660)._
