Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is there a size limit to POST "https://api.bitbucket.org/2.0/repositories/user/repo/downloads"?

Lucas Magasweran
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 7, 2019

I'm following the steps in https://confluence.atlassian.com/bitbucket/deploy-build-artifacts-to-bitbucket-downloads-872124574.html to use the HTTP REST API to POST an artifact to the BitBucket repo downloads section.

It appears to work great for small files but fails for large files (~600 MB). The upload only fails after curl has transferred 100% with a page that says "Something went wrong. You can try again or contact support if the problem persists."

Is there a file size limit?

1 answer

0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 30, 2019

Hey Lucas,

It sounds like you might actually be hitting the repo size limit. There's a hard limit at 2GB as git doesn't do too well with big repository sizes. We've got the repo limits and how you can check them documented here.

Let me know if you've still got questions after checking that out!

Cheers,
Daniel

hongdeshuai
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 13, 2023

Actually I can only upload 30 MB

$(curl --max-filesize 100M -X POST "https://${BITBUCKET_USERNAME}:${BITBUCKET_APP_PASSWORD}@api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads/" --form files=@"./app/build/outputs/apk/release/app-release.apk")

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events