# Replace Uploaded File

**URL:** <https://community.transloadit.com/t/replace-uploaded-file/17208>\
**Category:** Uppy\
**Created:** [July 26, 2024, 4:15pm UTC](https://community.transloadit.com/t/replace-uploaded-file/17208 "2024-07-26T16:15:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wrh3rd](https://avatars.discourse-cdn.com/v4/letter/w/5e9695/32.png) [@wrh3rd](https://community.transloadit.com/u/wrh3rd)\
**Post date:** [July 26, 2024, 4:15pm UTC](https://community.transloadit.com/t/replace-uploaded-file/17208/1 "2024-07-26T16:15:43Z")

</div>

Hello,

I have 1 file limit and when uploading a file a second time, I want it to replace the current file. Is this possible?

I have tried calling cancelAll inside onBeforeFileAdded but I still get an error about the file upload limit.

Thank you.
