{"id":92,"date":"2009-02-11T17:12:21","date_gmt":"2009-02-11T23:12:21","guid":{"rendered":"http:\/\/home.lps.org\/cs2\/2009\/02\/11\/file-names\/"},"modified":"2019-04-12T14:22:32","modified_gmt":"2019-04-12T19:22:32","slug":"file-names","status":"publish","type":"post","link":"https:\/\/home.lps.org\/cs\/2009\/02\/11\/file-names\/","title":{"rendered":"File Names"},"content":{"rendered":"<p>Computer users frequently save files. Every time they do, they are faced with a small decision &#8211; &#8220;What should I name this file?&#8221; Some of you have never given this a second thought and have been just fine, while others have learned through difficult experiences that some file names are better than others. Because this is a question that pops up on a regular basis, please consider the following information:<\/p>\n<p>Every operating system ever used to control a computer (Macintosh, Windows, etc.) has had a slightly different set of rules about what you can and cannot do when naming your files. This is typically not a problem until you intend to move files from one place to another, or share your files with people who may be using a different type of computer than you are. The following rules should keep your filenames appropriate, no matter what computer or server will see them over the years.<\/p>\n<h4><strong>The following characters will always be safe:<\/strong><\/h4>\n<ul>\n<li><strong>Aa-Zz<\/strong>\u00a0\u00a0\u00a0 (alpha characters)<\/li>\n<li><strong>0-9<\/strong>\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 (numeric characters)<\/li>\n<li><strong>_<\/strong>\u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 (underscores)<\/li>\n<li><strong>&#8211;<\/strong> \u00a0\u00a0\u00a0 \u00a0\u00a0\u00a0 (hyphens)<\/li>\n<\/ul>\n<h4>For various technical reasons the following characters <strong>should NOT be used<\/strong> in any file name:<\/h4>\n<ul>\n<li>\u00a0\u2044 \u00a0\u00a0 (back slash or forward slash)<\/li>\n<li>: \u00a0\u00a0\u00a0 (colon)<\/li>\n<li>* \u00a0\u00a0\u00a0 (asterisk)<\/li>\n<li>? \u00a0\u00a0\u00a0 (question mark)<\/li>\n<li>&#8221; \u00a0\u00a0\u00a0 (quotation marks)<\/li>\n<li>&lt; &gt; (angle brackets\/less than\/greater than)<\/li>\n<li>| \u00a0\u00a0\u00a0 (pipe)<\/li>\n<li>% \u00a0\u00a0\u00a0 (percent)<\/li>\n<li># \u00a0\u00a0\u00a0 (number\/pound\/hash)<\/li>\n<li>$ \u00a0\u00a0\u00a0 (dollar)<\/li>\n<li>, \u00a0\u00a0\u00a0 (comma)<\/li>\n<li>; \u00a0\u00a0\u00a0 (semi-colon)<\/li>\n<li>\u2022 \u00a0\u00a0\u00a0 (bullet)<\/li>\n<li>&amp; \u00a0\u00a0\u00a0 (ampersand)<\/li>\n<\/ul>\n<h4>Extensions<\/h4>\n<p>Your filename should end with a three letter extension identifying to computers what software is necessary to view the file. Your computer will assist you with this whenever you save a file. Use a period to separate the base file name from the file extension, but do not use two consecutive periods or one after the file extension. For example:<\/p>\n<p style=\"padding-left: 30px;\">GOOD: \u00a0\u00a0\u00a0 <strong>Filename.pdf<\/strong><\/p>\n<p style=\"padding-left: 30px;\">BAD: \u00a0\u00a0\u00a0 Filename<strong>..<\/strong>pdf<\/p>\n<p style=\"padding-left: 30px;\">BAD: \u00a0\u00a0\u00a0 Filename<strong>.<\/strong>pdf<strong>.<\/strong><\/p>\n<p style=\"padding-left: 30px;\">Also BAD: File.name.pdf<\/p>\n<p>Avoid giving a file more than one file extension (Filename.pdf.zip) as it gives the impression the file is trying to hide its real identity, making it appear like a virus. Email and web filters may block this file.<\/p>\n<h4>File Name Length<\/h4>\n<p>Early file systems limited names to 8 characters in length. That increased to 32 characters in the 90&#8217;s, and then to the current standard which is 255 characters allowed in a file name. However, having the ability to give a file a really long name does not make it a good idea. Consider the act of viewing a file in a folder (on your computer, or eDisk), or on a web page (DocuShare). Files with names longer than 11 characters or so become difficult to view, and are often truncated for viewing.\u00a0 For this reason, try to keep your total file names under 15 characters.<\/p>\n<h4>Other Tips<\/h4>\n<p>Within a single folder (directory) no two files may have the same name. Your computer will often make adjustments for you to avoid replacing a file. For example:<\/p>\n<ul>\n<li>Filename.pdf<\/li>\n<li>Filename01.pdf<\/li>\n<li>Filename02.pdf<\/li>\n<li>Filename03.pdf<\/li>\n<\/ul>\n<p>File names are not case sensitive. Upper-case letters and lower-case letters are considered the same. The file names &#8220;MyName.pdf&#8221; and &#8220;myname.pdf&#8221; would be considered identical, and a folder could not contain both of them.\u00a0 If you try to add a file with the same name to a folder, your computer may ask you if you wish to replace the original.\u00a0 Consider carefully.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Email Attachments<\/strong><\/p>\n<p>All of the same rules above apply to files that you wish to send as attachments to email messages.\u00a0 File extensions are especially important when sending email attachments.\u00a0 They help the email programs understand what helper applications are required to open the file.<\/p>\n<p>&nbsp;<\/p>\n<h4>More Information<\/h4>\n<p>Again, every operating system has its own set of rules, and what works on one may not be acceptable on another. For more details, feel free to refer to the following resources:<\/p>\n<ul>\n<li><strong>&#8216;File Names&#8217;<\/strong> on Wikipedia:<a href=\"http:\/\/en.wikipedia.org\/wiki\/File_name\"><br \/>\nhttp:\/\/en.wikipedia.org\/wiki\/File_name<\/a><\/li>\n<li><strong>&#8216;Naming a File or Directory&#8217;<\/strong> on Microsoft Developer Network:<a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/aa365247.aspx\"><br \/>\nhttp:\/\/msdn.microsoft.com\/en-us\/library\/aa365247.aspx<\/a><\/li>\n<li><strong>&#8216;Recommendations for Limitations on Image Filenaming&#8217;<\/strong> from Controlled Vocabulary:<a href=\"http:\/\/www.controlledvocabulary.com\/imagedatabases\/filename_limits.html\"><br \/>\nhttp:\/\/www.controlledvocabulary.com\/imagedatabases\/filename_limits.html<\/a><\/li>\n<li><strong>&#8216;Mac and Windows OS File\/Folder naming rules&#8217;<\/strong> on Mark Anderson&#8217;s Portfolio&#x2122; FAQ:<a href=\"http:\/\/www.portfoliofaq.com\/pfaq\/FAQ00352.htm\"><br \/>\nhttp:\/\/www.portfoliofaq.com\/pfaq\/FAQ00352.htm<\/a><\/li>\n<li><strong>File Extensions:<\/strong><a href=\"http:\/\/www.fileinfo.net\/\"><br \/>\nhttp:\/\/www.fileinfo.net\/<\/a><\/li>\n<\/ul>\n<h4><\/h4>\n<h4><\/h4>\n<h4><\/h4>\n<h3><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>Computer users frequently save files. Every time they do, they are faced with a small decision &#8211; &#8220;What should I name this file?&#8221; Some of you have never given this a second thought and have been just fine, while others have learned through difficult experiences that some file names are better than others. Because this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[6],"tags":[183,182],"class_list":["post-92","post","type-post","status-publish","format-standard","hentry","category-topics","tag-files","tag-tip"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/home.lps.org\/cs\/wp-json\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.lps.org\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/home.lps.org\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/home.lps.org\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/home.lps.org\/cs\/wp-json\/wp\/v2\/comments?post=92"}],"version-history":[{"count":5,"href":"https:\/\/home.lps.org\/cs\/wp-json\/wp\/v2\/posts\/92\/revisions"}],"predecessor-version":[{"id":13752,"href":"https:\/\/home.lps.org\/cs\/wp-json\/wp\/v2\/posts\/92\/revisions\/13752"}],"wp:attachment":[{"href":"https:\/\/home.lps.org\/cs\/wp-json\/wp\/v2\/media?parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/home.lps.org\/cs\/wp-json\/wp\/v2\/categories?post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/home.lps.org\/cs\/wp-json\/wp\/v2\/tags?post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}