True Name on File Upload?

AI-generated summary

The discussion revolves around file uploads in Discourse. Muiran inquired about settings to retain original file names, define upload directories, and separate upload folders for admins and general members. Zogstrip clarified that uploads keep track of original filenames, are global, and there are no plugins for community cloud-sharing. Muiran and Falco discussed the renaming of uploaded files to a hash, which is a security feature. Berto and patrickemin expressed concerns about the loss of SEO benefits due to this feature and would like a way to use clean, descriptive filenames. However, codinghorror emphasized that Discourse is not a file hosting platform, and security takes priority over SEO considerations.

  1. Is there a setting that allows us to retain the original file name on uploads?
  2. Is there a setting to define a directory to upload to?
  3. Is there a way to define an upload folder for Admins seperate from General Membership?
  4. Is anyone developing a plugin for community cloud-sharing, like ownCloud, for example?
    48 Features make ownCloud the exciting sovereign workspace

Any insight or advice is appreciated.

We always keep track of the original filename and show it in the lightbox for images.

No. Uploads are global.

Not that I know of.

Thanks Régis,
When updating the default branding
images/d-logo-sketch.png

This file name . . .
logo.mt.zed.244x66.png

Is babelized into this . . . :confused:
faa68f0faea3a6122686e50591a2165b2fbaf8ed.png

How can I stop this or is it a security feature?

It is a security feature.

New to discourse, and am curious about these filenames.

What is the security flaw in having a clean filename if the uploader can sanitize it?

There are a lot of SEO benefits lost when you can’t have decent filenames. Would love to find a way around this.

Discourse is not in any way intended as a file hosting platform, so security > hand wavy SEO in this particular case.

Also I’m pretty sure DropBox et al do not work this way either so the argument that it should include the filename in the URL is pretty weak?

نعم، أتمنى لو كانت هناك طريقة لتسمية الصور المرفقة باسم متوافق مع تحسين محركات البحث (SEO) أيضًا.