# Attachment filename not set on download

**URL:** <https://meta.discourse.org/t/attachment-filename-not-set-on-download/57871>\
**Category:** Product Support\
**Tags:** unsupported-install\
**Created:** [2017 年2 月 24 日 03:30 UTC](https://meta.discourse.org/t/attachment-filename-not-set-on-download/57871 "2017-02-24T03:30:06Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![iamphi](https://avatars.discourse-cdn.com/v4/letter/i/ba9def/32.png) [@iamphi](https://meta.discourse.org/u/iamphi)\
发布日期： [2017 年2 月 24 日 03:30 UTC](https://meta.discourse.org/t/attachment-filename-not-set-on-download/57871/1 "2017-02-24T03:30:06Z")

</div>

Hello  
I authorized my own extension, made a new post and uploaded a test file of my extension and the download does not have the original filename.  
I also attached an txt file and that doesn’t download, but it opens in the same screen.

My current version is `v1.8.0.beta5 +99`. sidekiq is not running.

My test discourse server is hosted on AWS and following these guides:

> [@Install Discourse on Ubuntu or Debian for Development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727):
>
> warning This guide covers installation instructions in a development environment. For a production guide see: [Install Discourse in production with the official supported instructions](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537) So you want to set up Discourse on Ubuntu or Debian to hack on and develop with? We’ll assume that you work locally and don’t have Ruby/Rails/Postgres/Redis installed on your Ubuntu or Debian system. Let’s begin! Requirements We suggest having at least 4 GB RAM and 2 CPU cores. Current compatibility: O…

> [@Migrate a vBulletin 4 forum to Discourse](https://meta.discourse.org/t/importing-from-vbulletin-4/54881):
>
> In this tutorial we will learn how to migrate vBulletin forum to discourse platform using [vBulletin importer script](https://github.com/discourse/discourse/blob/master/script/import_scripts/vbulletin.rb). I have tested the script with a big database and the result was very good. The script is well written and maintained. Let’s get started slight_smileWhat data can be imported? Groups Users Banned Users =\> Suspended Users Forums Each parent and child forum =\> Category and Sub-category Topics Sticky Thread =\> Pinned Topic Closed Thread =\> Closed Topic Soft Deleted Thr…

I have read various posts about attachments are saved on disk/s3 with the filehash as the filename. However, I noticed that the discourse.txt download from the first post here:  
[https://meta.discourse.org/t/new-attachments/8609](https://meta.discourse.org/t/new-attachments/8609)

has this header on download:` Content-Disposition:"attachment; filename="discourse.txt"`

Is that the side effect of using S3 as file storage? Can that header be added for disk base file storage?

Thank you.

---

_[View the full topic](https://meta.discourse.org/t/attachment-filename-not-set-on-download/57871)._
