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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,467,600
Community Members
 
Community Events
177
Community Groups

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

Edited

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 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

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

Atlassian Community Events