# Adding documents programmatically to HubSpot Sales

**URL:** <https://community.hubspot.com/t/adding-documents-programmatically-to-hubspot-sales/4007>\
**Category:** Sales Hub Tools\
**Created:** [November 28, 2017, 12:54am UTC](https://community.hubspot.com/t/adding-documents-programmatically-to-hubspot-sales/4007 "2017-11-28T00:54:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericthomas](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ericthomas/32/93778_2.png) [@ericthomas](https://community.hubspot.com/u/ericthomas)\
**Post date:** [November 28, 2017, 12:54am UTC](https://community.hubspot.com/t/adding-documents-programmatically-to-hubspot-sales/4007/1 "2017-11-28T00:54:38Z")

</div>

We have a document that our sales person shares with prospects in one-on-one emails. We occasionally update it. When I go to the Documents page in Hubspot and click re-upload to update the version, it just seems to create another file in the documents manager. Am I doing something wrong? Ideally, we would just have one link that she shares, and it would always bring up the latest version of the document. Is this possible?

Thanks!

---

<div class="post-metadata">

**Author:** ![edjusten](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/edjusten/32/14475_2.png) [@edjusten](https://community.hubspot.com/u/edjusten)\
**Post date:** [November 29, 2017, 8:55pm UTC](https://community.hubspot.com/t/adding-documents-programmatically-to-hubspot-sales/4007/2 "2017-11-29T20:55:59Z")

</div>

Hi @ericthomas As it turns out, when you upload a new document (even a new version of a document) it will create a new URL. It is not possible to keep the same url and replace documents that live there.

Great suggestion though. Can you add this as a [post to our ideas forum](https://community.hubspot.com/t5/custom/page/page-id/ideaslandingpage) for further comment?

Thank you,

Ed Justen

---

<div class="post-metadata">

**Author:** ![amandafann](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/amandafann/32/29572_2.png) [@amandafann](https://community.hubspot.com/u/amandafann)\
**Post date:** [June 25, 2021, 3:21pm UTC](https://community.hubspot.com/t/adding-documents-programmatically-to-hubspot-sales/4007/3 "2021-06-25T15:21:26Z")

</div>

I had the same question, and while I haven’t tried it, it looks like there’s an app that offers this fuctionality: [**CloudFiles:**](https://help.cloudfilesapp.co/how-to-replace-files-while-preserving-the-same-link)

[**How to replace files while preserving the same link?**](https://help.cloudfilesapp.co/how-to-replace-files-while-preserving-the-same-link)
