spaces in a file name

spaces in a file name

by Gert-Jan F -
Number of replies: 7

When i upload a file with spaces in the name of te file, Moodle replace the spaces with an underscore.

Like this "this is a tree.zip" into "this_is_a_tree.zip"

Is there a way to bypass this action so that i can upload files with spaces in de name.

thnx in advance

Gert-Jan.

Average of ratings: -
In reply to Gert-Jan F

Re: spaces in a file name

by Mary Cooch (personal account) -
Picture of Documentation writers Picture of Testers
Hi there. I don't know if you can - my impression always was that the internet doesn't like spaces  -hence you will get either underscores -or -elsewhere percentage marks %%% to fill up the space. I await with interest someone else's more expert response smile
In reply to Mary Cooch (personal account)

Re: spaces in a file name

by Marc Grober -
http://www.ietf.org/rfc/rfc1738.txt explains about URL usage, but that is not applicable by extension to OS parsing of files with spaces, which some OS do and some OS don't do, and the way various OS address same can cause confusion, especially when it comes to tightly coupled apps.
In reply to Gert-Jan F

Re: spaces in a file name

by Marc Grober -
You apparently ARE uploading files that have spaces in their name, and Moodling is enabling this inappropriate conduct by "fixing" your oversight. If what you are really asking is how to URL encode spaces you will find that by doing a web search on "URL encoding". Arguably you could change moodle's behavior so that it provides URL encoded spaces instead of underscores.... but personally I don't think that will afford you any net gains on usability
In reply to Marc Grober

Re: spaces in a file name

by Gert-Jan F -
Thanks for all the replies. I agree your comments about usability, url spacing.
The problem i have to deal with is that i upload files that have spaces, because another local application is demanding the "Exact" file name with spaces. I think i have to zip this files and tell our students that they have to unzip it.


In reply to Gert-Jan F

Re: spaces in a file name

by Marc Grober -
Humor us, would you, and explain what you are trying to do vis-a-vis passing what kind of file to what kind of app that is demanding only a specific file name that must include spaces?