# POST /filemanager/api/v3/files/upload returning 405 Method Not Allowed

**URL:** <https://community.hubspot.com/t/post-filemanager-api-v3-files-upload-returning-405-method-not-allowed/32974>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [March 10, 2021, 5:05pm UTC](https://community.hubspot.com/t/post-filemanager-api-v3-files-upload-returning-405-method-not-allowed/32974 "2021-03-10T17:05:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SLangdon](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/slangdon/32/77566_2.png) [@SLangdon](https://community.hubspot.com/u/SLangdon)\
**Post date:** [March 10, 2021, 5:05pm UTC](https://community.hubspot.com/t/post-filemanager-api-v3-files-upload-returning-405-method-not-allowed/32974/1 "2021-03-10T17:05:35Z")

</div>

Hello! I have been integrated with the /filemanager/api/v3/files/upload for several months now successfully in a nodejs server. However, around 10am yesterday the endpoint started responding with a 405 Method Not Allowed. I have confirmed that the integration is still POSTing. Were there changes to this endpoint that I should be aware of? Thanks. The implementation is as follows.

const uploadUrl = `${HUBSPOT_FILE_API_URL}/upload?hapikey=${this._apiKey}`  
const uploadedFiles = []

for (const file of files) {  
const form = new FormData()

const fileOptions = {  
access: ‘PUBLIC\_INDEXABLE’,  
overwrite: true,  
}  
form.append(‘file’, file.buffer, {  
contentType: file.mimetype,  
filename: file.originalname,  
})  
form.append(‘options’, JSON.stringify(fileOptions))  
form.append(‘folderPath’, `files/${name}`)

const response = await this.\_axios.post\<HubspotUploadResponse\>(  
uploadUrl,  
form,  
{  
headers: { …form.getHeaders() },  
},  
)

I’ve also attempted to upload via the node sample code. With that integration, I’m recieving a 301.

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [March 10, 2021, 7:09pm UTC](https://community.hubspot.com/t/post-filemanager-api-v3-files-upload-returning-405-method-not-allowed/32974/2 "2021-03-10T19:09:53Z")

</div>

Hi @SLangdon

What is the full url that you are hitting (minus the api key)

Make sure that you are using https and not http.

---

<div class="post-metadata">

**Author:** ![SLangdon](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/slangdon/32/77566_2.png) [@SLangdon](https://community.hubspot.com/u/SLangdon)\
**Post date:** [March 10, 2021, 7:42pm UTC](https://community.hubspot.com/t/post-filemanager-api-v3-files-upload-returning-405-method-not-allowed/32974/3 "2021-03-10T19:42:25Z")

</div>

The full URL is indeed http: `[http://api.hubapi.com/filemanager/api/v3/files`](http://api.hubapi.com/filemanager/api/v3/files%60). I’ll try again with https

---

<div class="post-metadata">

**Author:** ![SLangdon](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/slangdon/32/77566_2.png) [@SLangdon](https://community.hubspot.com/u/SLangdon)\
**Post date:** [March 10, 2021, 7:45pm UTC](https://community.hubspot.com/t/post-filemanager-api-v3-files-upload-returning-405-method-not-allowed/32974/4 "2021-03-10T19:45:42Z")

</div>

Thank you so much!
