84
submitted 1 year ago* (last edited 1 year ago) by squidsarefriends@feddit.de to c/asklemmy@lemmy.ml

Edit: Thank you guys for your insightful answers!

you are viewing a single comment's thread
view the rest of the comments
[-] helpimnotdrowning 20 points 1 year ago

TLDR; No

It hasn't been necessary in a long time, unless you're a developer who frequently needs to type in filenames in everywhere (since the command line needs extra protection against spaces and other symbols)

The OS (Windows, Mac, Android, etc) handles thar all for you so you don't have to worry about it (unless you happen to use a badly-written program that doesn't understand spaces, but this is super rare to begin with, and more protected against as time goes on)

[-] jsveiga@sh.itjust.works 7 points 1 year ago

Even non-developers may hate spaces in filenames, when links to the file you send in a message don't work because clicking on them uses only up to before the first space.

[-] Can_Utility@beehaw.org 2 points 1 year ago

I maintain a number of Drupal websites as part of my job. Our stakeholders have varying degrees of familiarity with the ins and outs of computing.

A few months ago I got a ticket from one of our stakeholders. Apparently PDF files were broken across large swathes of their site. What happened was Red Hat pushed through an update to apache that closed some security loopholes. As an unexpected side effect, it also meant that any files being served from Drupal's private file system would break if the files contained spaces in the names. No rewrite rules seemed to fix the issue; we ended up having to go into the rendered HTML and replace all the spaces in the links with '+' signs. They are now told to make sure future files have underscores instead of spaces in the filename.

So yes, in some cases you still need to use _ (or some sort of non-space character) in file names, even today.

this post was submitted on 09 Aug 2023
84 points (95.7% liked)

Asklemmy

43317 readers
1033 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS