Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8405285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:48:55+00:00 2026-06-09T22:48:55+00:00

I use the following syntax to upload files: curl –form upload=@localfilename –form press=OK [URL]

  • 0

I use the following syntax to upload files:

curl --form upload=@localfilename --form press=OK [URL]

How to display the progress? Thx.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:48:57+00:00Added an answer on June 9, 2026 at 10:48 pm

    This is what I use in one of my build scripts:

    curl "${UPLOAD_URL}" \
        --progress-bar \
        --verbose \
        -F build="${BUILD}" \
        -F version="${VERSION}" \
        -F ipa="@${IPA};type=application/octet-stream" \
        -F assets="@-;type=text/xml" \
        -F replace="${REPLACE}" \
        -A "${CURL_FAKE_USER_AGENT}" \
        <<< "${ASSETS}" \
        | tee -a "${LOG_FILE}" ; test ${PIPESTATUS[0]} -eq 0
    

    The -F and -A options will probably not be of interest to you, but the helpful parts are:

    curl "${UPLOAD_URL}" --progress-bar
    

    which tells curl to show a progress bar (instead of the default ‘progress meter’) during the upload, and:

     | tee -a "${LOG_FILE}" ; test ${PIPESTATUS[0]} -eq 0
    

    which appends the output of the command to a log file and also echo’s it to stdout. The test ${PIPESTATUS[0]} -eq 0 part makes it so that the exit status of this line (which is in a bash script) is the same exit code that the curl command returned and not the exit status of the tee command (necessary because tee is actually the last command being executed in this line, not curl).


    From man curl:

    PROGRESS METER
           curl normally displays a progress meter during operations, indicating the
           amount of transferred data, transfer speeds and estimated time left, etc.
    
           curl  displays  this  data to the terminal by default, so if you invoke curl
           to do an operation and it is about to write data to the terminal, it disables
           the progress meter as otherwise it would mess up the output mixing progress
           meter and response data.
    
           If you want a progress meter for HTTP POST or PUT requests, you need to
           redirect the response output to a file, using shell redirect (>), -o [file]
           or similar.
    
           It is not the same case for FTP upload as that operation does not spit out
           any response data to the terminal.
    
           If you prefer a progress "bar" instead of the regular meter, -# is your
           friend.
    
    OPTIONS
           -#, --progress-bar
                  Make curl display progress as a simple progress bar instead of the
                  standard, more informational, meter.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I usually keep it simple and use the following form syntax in my templates:
I am working on a PHP project. There, I often use following syntax to
I am getting the warning with use of following syntax - my %data_variables =
I'm trying to use is_member_pointer from the type_traits header, with the following syntax, for
I am looking for the SQL syntax to use HAVING in the following statement:
The following code works, but I'd like to use the self-invoking function syntax when
I use the following command syntax to search params in my script grep -qsRw
Can I use following syntax: std::map<int,std::list<int>> mAllData; Where Key Value(int) will be ID of
I can use the following syntax in a Jet (mdb) query to select data
I have a problem using php rename function. If I use the following syntax

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.