V8-archive: Access thumbnails using the original filename

Created on 18 Dec 2019  路  11Comments  路  Source: directus/v8-archive

As of Version 8 thumbnail urls contain the private_hash.
For website SEO purposes it would be better to be able to have the original filename (filename_disk or filename_download) in the url .
Can this be added back in?

enhancement question api

All 11 comments

@benhaynes - Are we supposed to add this feature?

It's a request for an enhancement.

This is something we'll need to discuss. There are benefits to both directions, but it will likely need to be an option. @rijkvanzanten thoughts?

@rijkvanzanten - 馃敂

I have no objection to adding a setting to directus_settings that lets you toggle between private_hash and filename_download 馃憤

We have already file_naming setting but it's used for the original filename. So is there any need to add a different variable for thumbnails?

IMO, we should use the same variable for both.

file_naming controls how files are stored on disk (and filename_disk). This would be to control how you're accessing files in /assets. They're similar, but definitely not the same.

Awesome to see an commit for this.

  1. Does this mean that we can now access thumbnails by private_hash or filename_disk without making any other settings, or is it one or the other as defined by the Files and Thumbnails -> File Naming setting in the app?
  2. Also was this update made live in v8.4.0?

@blob100

  1. There will be a setting in the app that lets you choose between the two.
  2. Not yet. The PR hasn't been merged yet. Once it's merged, it will be released in the next released.

I was previously accessing thumbnails using:
https://<domain>.com/<project>/assets/<private_hash>?key=<asset_whitelist_value>

Now I set the app - Settings - File Naming = File Name, and expect to be able to access by:
https://<domain>.com/<project>/assets/<filename_disk>?key=<asset_whitelist_value>
But I get Code 203, Item not found.
And with setting to File Name I am still able to get the file using the private_hash

How do I configure the url to get the file using File Name?

@bjgajjar

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vuhrmeister picture vuhrmeister  路  3Comments

jwkellyiii picture jwkellyiii  路  3Comments

cdwmhcc picture cdwmhcc  路  3Comments

cdwmhcc picture cdwmhcc  路  3Comments

24js picture 24js  路  3Comments