# Error while uploading files larger than 10Mb

**URL:** <https://discuss.huggingface.co/t/error-while-uploading-files-larger-than-10mb/24197>\
**Category:** 🤗Datasets\
**Created:** [October 10, 2022, 1:08am UTC](https://discuss.huggingface.co/t/error-while-uploading-files-larger-than-10mb/24197 "2022-10-10T01:08:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rdemorais](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/rdemorais/32/12002_2.png) [@rdemorais](https://discuss.huggingface.co/u/rdemorais)\
**Post date:** [October 10, 2022, 1:08am UTC](https://discuss.huggingface.co/t/error-while-uploading-files-larger-than-10mb/24197/1 "2022-10-10T01:08:53Z")

</div>

Hello everyone,

Two weeks ago I successfully uploaded 60 files to the Hub using this code:

```auto
api.upload_file(
            path_or_fileobj=train_file.name,
            path_in_repo=file_name,
            repo_type='dataset',
            repo_id=args.repo_id,
            token=args.hf_token
          )

```

The files ware tagged with a LFS icon which is visible on the hug page:

 ![Screen Shot 2022-10-09 at 22.00.52](https://us1.discourse-cdn.com/hellohellohello/original/2X/5/5ee8c8dee0aec5bca70d2884582639467d9a5b90.png)

Now I’m trying to execute the very same code, from the same machine I used before, but I’m getting:

`Error when retrieving LFS file brwac_train_0.txt`

That file is 60Mb large.  
Only files at 10Mb or less is getting uploaded this time.

Am I doing something wrong?

I have `git-lfs` installed on my machine, and I have executed `huggingface-cli lfs-enable-largefiles assets` as well.

Thanks for helping.

---

<div class="post-metadata">

**Author:** ![rdemorais](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/rdemorais/32/12002_2.png) [@rdemorais](https://discuss.huggingface.co/u/rdemorais)\
**Post date:** [October 10, 2022, 2:20pm UTC](https://discuss.huggingface.co/t/error-while-uploading-files-larger-than-10mb/24197/2 "2022-10-10T14:20:04Z")

</div>

Guys, forget about this… It seems the new version of huggingface\_hub, v0.10.0, has fixed the problem.
