Skip to content

The public link for uploaded media is not finable for users, made worse by the file name not being displayed consistently in different states #4209

@equivalentideas

Description

@equivalentideas

Describe the bug

When CMS users upload a document, they cannot determine what the public URL for it is, so that they can share it with others.

My colleague uploaded a pdf document, titled "Response to Coles and Woolies.pdf", after which the media upload screen appeared like this:
image

From here, they were unable to work out what the URL for the file they had just uploaded was. Not that on their screen, the file name is the same as what they uploaded.

They called me to try and work it out for them, and when I loaded the media centre I saw this:
image

I wasn't sure if this was the same file because the file name was different.

Knowing that our public media folder path was /downloads/ I suggested to my colleague to see if putting the file name that they see on the end of /downloads/ worked.

They replied, 'Nup. tried a bunch of different permutations. with the spaces, without spaces between words, using underscore between words'.

I then showed them the document named response-to-coldes-and-woolies.pdf that I saw in the media folder, and unexpectidly, this was the same document as what was collect Response to Coles and Woolies.pdf in their media folder.

This flow was very confusing and frustrating to my colleague, who was trying to share a document very quickly to a deadline.

To Reproduce

  1. go to the media centre and upload a pdf with spaces and capitals in the title, e.g. 'Foo Bar.pdf'
  2. see that there is no link or indication of what the url for that document is.

Expected behavior

My colleague expected to see a link to the public document somewhere in the interface, so that they could copy it and use it as needed.

They also expected for the file name in the interface to be consistent between them uploading the file and me looking for it in the media centre. There's no obvious reason why this would change over time. I understand that we want to transform the file name to be nice in a URL, in this case, it should be transformed before it is shown to the initial uploader in the first place, so that it is consistent over time.

Screenshots
See above.

Applicable Versions:

  • netlify-cms 2.10.55
  • Gitlab
  • Windows 10 (initial uploader), Debian (me)
    *Chrome Version 84.0.4147.135 (initial uploader), Firefox 79.0 (me)

CMS configuration

n/a

Additional context

Thanks as always :) love your work.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions