# Is url in \`rocketchat\_uploads\` collection in mongodb supposed to have absolute path like\`https://site.com/\<path\>\` or just \`\<path\>\`?

**URL:** <https://forums.rocket.chat/t/is-url-in-rocketchat-uploads-collection-in-mongodb-supposed-to-have-absolute-path-like-https-site-com-path-or-just-path/16571>\
**Category:** Community Support\
**Tags:** design\
**Created:** [April 18, 2023, 8:03am UTC](https://forums.rocket.chat/t/is-url-in-rocketchat-uploads-collection-in-mongodb-supposed-to-have-absolute-path-like-https-site-com-path-or-just-path/16571 "2023-04-18T08:03:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![g1patnaik](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/g1patnaik/32/1301_2.png) [@g1patnaik](https://forums.rocket.chat/u/g1patnaik)\
**Post date:** [April 18, 2023, 8:03am UTC](https://forums.rocket.chat/t/is-url-in-rocketchat-uploads-collection-in-mongodb-supposed-to-have-absolute-path-like-https-site-com-path-or-just-path/16571/1 "2023-04-18T08:03:25Z")

</div>

Hi,

Is url in `rocketchat_uploads` collection in mongodbo supposed to have absolute path like `https://site.com/<path>` or just `<path>`?

I see in one of the test instances that is using rocket chat version 1.x is using just the relative path, but another instance of 3.x version is using absolute path.

So I wonder if it is our misconfiguration in the 3.x instance, as my understanding is that the absolute paths will break once the site’s ROOT\_URL is changed.

So which is the supposed way and what could cause the absolute paths in URL?

---

<div class="post-metadata">

**Author:** ![g1patnaik](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/g1patnaik/32/1301_2.png) [@g1patnaik](https://forums.rocket.chat/u/g1patnaik)\
**Post date:** [May 25, 2023, 6:41pm UTC](https://forums.rocket.chat/t/is-url-in-rocketchat-uploads-collection-in-mongodb-supposed-to-have-absolute-path-like-https-site-com-path-or-just-path/16571/2 "2023-05-25T18:41:09Z")

</div>

Hi,

Anyone kindly help me with this query?  
Actually I am trying to migrate attachments from gridfs to filesystem using [GitHub - arminfelder/gridfsmigrate: RocketChat GridFS to filesytem migration script](https://github.com/arminfelder/gridfsmigrate). And inorder to do that, I need to these incosistencies in paths. So tryign to understand if the path is supposed to have the hardcoded site name included.
