# API upload via url inconsistent results

**URL:** <https://meta.discourse.org/t/api-upload-via-url-inconsistent-results/84016>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [28.Март.2018 04:46:16 UTC](https://meta.discourse.org/t/api-upload-via-url-inconsistent-results/84016 "2018-03-28T04:46:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![michael.smith](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michael.smith/32/93123_2.png) [@michael.smith](https://meta.discourse.org/u/michael.smith)\
**Post date:** [28.Март.2018 20:15:37 UTC](https://meta.discourse.org/t/api-upload-via-url-inconsistent-results/84016/3 "2018-03-28T20:15:37Z")

</div>

The URL has an expiry set on it, that is probably why you can’t see it now. It is generated on the fly when using the [Canvas API](https://canvas.instructure.com/doc/api/files.html#method.files.public_url)

It is difficult to show you but here is another URL that has just been generated. I can access it from incognito browser too.

`https://instructure-uploads-apse2.s3.ap-southeast-2.amazonaws.com/account_24310000000000001/attachments/777/IT%20Helpdesk%20Support%20Duty%20Statement%205%20Nov%202015.pdf?response-content-disposition=inline%3B%20filename%3D%22IT%20Helpdesk%20Support%20Duty%20Statement%205%20Nov%202015.pdf%22%3B%20filename%2A%3DUTF-8%27%27IT%2520Helpdesk%2520Support%2520Duty%2520Statement%25205%2520Nov%25202015.pdf&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIZAVS3WMRR54DT4Q%2F20180328%2Fap-southeast-2%2Fs3%2Faws4_request&X-Amz-Date=20180328T201440Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&X-Amz-Signature=a476c1046e6b356c3bee618247957aea3c1dce3f0f442391130515a030fb8016`

I guess I am just trying to find out why these kinds of files are not able to be uploaded via Discourse API and others are.

---

_[View the full topic](https://meta.discourse.org/t/api-upload-via-url-inconsistent-results/84016)._
