Mac & windows file name sizes

I am using Dreamweaver 8 on the Mac for most all of my
commercial web development. I have a G5 connected to a local
network where I also run a Windows 2000 box as a web server to test
with. in a new project which I took over from another company they
have page names such as
new-england-lodging-2-doubles-1-twin.html
I downloaded the site and can see it all hunky-dorey on the
Mac. however when I try & upload these files to my testing
server, they won't go. I get the following error message:
new-england-lodging-2-doubles-1-twin.html - error occurred -
An error occurred - cannot put
new-england-lodging-2-doubles-1-twin.html. The specified path does
not exist.
of course the path DOES in fact exist. in addition I can
create a file with this name on the PC side with no difficulty.
however when I do so the file name is displayed on the Mac side
thus:
NEW-EN~2.HTM
obviously this is not at all useful!
any thoughts or workarounds for this? use of these file names
is a requirement on this site for SEO reasons. I would prefer not
to have to do the development on the PC for a variety of reasons.
thanks

> of course the path DOES in fact exist. in addition I can
create a file
> with
> this name on the PC side with no difficulty. however
when I do so the file
> name
> is displayed on the Mac side thus:
>
> NEW-EN~2.HTM
That typically occures when reading a windows formatted disk.
How did you
download the images to the Mac? Did you just grab then from
the FTP server?
If so, the file names SHOULD have come across OK.
-Darrel

Similar Messages

  • How is it posible to get the File name, size and type from a File out the H

    How is it posible to get the File name, size and type from a File out the HttpServletRequest. I want to upload a File from a client and save it on a server with the client name. I want to conrole before saving the name, type and size of the file.How is it posible to get the File name, size and type from a File out the HttpServletRequest.
    form JSP
    <form name="form" method="post" action="procesuploading.jsp" ENCTYPE="multipart/form-data">
    File: <input type="file" name="filename"/
    Path: <input type="text" readonly="" name="path" value="c:"/
    Saveas: <input type="text" name="saveas"/>
    <input name="submit" type="submit" value="Upload" />
    </form>
    proces JSP
    <%@ page language="java" %>
    <%@ page import="java.util.*" %>
    <%@ page import="FileUploadBean" %>
    <jsp:useBean id="TheBean" scope="page" class="FileUploadBean" />
    <%
    TheBean.doUpload(request);
    %>
    BEAN
    import java.io.*;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.ServletInputStream;
    public class FileUploadBean {
    public void doUpload(HttpServletRequest request) throws IOException
              String melding = "";
              String filename = request.getParameter("saveas");
              String path = request.getParameter("path");
              PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.java")));
              ServletInputStream in = request.getInputStream();
              int i = in.read();
              System.out.println("filename:"+filename);
              System.out.println("path:"+path);
              while (i != -1)
                   pw.print((char) i);
                   i = in.read();
              pw.close();
    }

    Thanks it works great.
    Here an excample from my code
    import org.apache.commons.fileupload.*;
    public class FileUploadBean extends Object implements java.io.Serializable{
    String foutmelding = "geen";
    String path;
    String filename;
    public boolean doUpload(HttpServletRequest request) throws IOException
         try
         // Create a new file upload handler
         FileUpload upload = new FileUpload();
         // Set upload parameters
         upload.setSizeMax(100000);
         upload.setSizeThreshold(100000000);
         upload.setRepositoryPath("/");
         // Parse the request
         List items = upload.parseRequest(request);
         // Process the uploaded fields
         Iterator iter = items.iterator();
         while (iter.hasNext())
         FileItem item = (FileItem) iter.next();
              if (item.isFormField())
                   String stringitem = item.getString();
         else
              String filename = "";
                   int temp = item.getName().lastIndexOf("\\");
                   filename = item.getName().substring(temp,item.getName().length());
                   File bestand = new File(path+filename);
                   if(item.getSize() > SizeMax && SizeMax != -1){foutmelding = "bestand is te groot.";return false;}
                   if(bestand.exists()){foutmelding ="bestand bestaat al";return false;}
                   FileOutputStream fOut = new FileOutputStream(bestand);     
                   BufferedOutputStream bOut = new BufferedOutputStream(fOut);
                   int bytesRead =0;
                   byte[] data = item.get();
                   bOut.write(data, 0 , data.length);     
                   bOut.close();
         catch(Exception e)
              System.out.println("er is een foutontstaan bij het opslaan de een bestand "+e);
              foutmelding = "Bestand opsturen is fout gegaan";
         return true;
         }

  • Portal - Maximum file name size

    Anybody knows how to find the maximum file name size allowed for file item on the Portal. I am on Portal version 10.1.4.0.0.
    Database version is 10.1.0.5.0.
    Thank you,
    Yonas

    Hi Lokesh,
    I am using    g_file_name    TYPE file_name,
    I am using the Following code to insert where g_file_name I get from
         CALL FUNCTION 'FILE_GET_NAME'
            EXPORTING
              logical_filename = c_log_file
              eleminate_blanks = space
              parameter_1      = g_par
            IMPORTING
              file_name        = g_file_name
            EXCEPTIONS
              file_not_found   = 1
              OTHERS           = 2.
          IF sy-subrc <> 0.
            g_retcode = sy-subrc.
          ENDIF.
        ENDIF.
    G_par is calculated based on Inv_num_postdate_VAtnum_Custname.
          OPEN DATASET g_file_name FOR OUTPUT IN BINARY MODE.
          IF sy-subrc = 0.
            LOOP AT i_tlines INTO wa_tlines_line.
              TRANSFER wa_tlines_line TO g_file_name.
            ENDLOOP.
            CLOSE DATASET g_file_name.
          ENDIF.
    But it truncates the file name like this
    9126000019_20120110_IT00879330033_OFFICINE GRAFICHE NOVARA 1901 SPA.p
    it shud be
    9126000019_20120110_IT00879330033_OFFICINE GRAFICHE NOVARA 1901 SPA.pdf
    Thanks

  • Mac corrupts file names on Windows network

    I am using my MacBook with Tiger on a Windows peer-to-peer network. Works fine, except occasionally files names that I access on one of the Windows machines will become confused. It's occurrence seems random to me; I think it only happens when I save changes, though. So, for instance, the file OnlineAccountInformation.xls would become OnlineAcco%32hg.xls. Any idea what might be causing this? I had the same problem with Panther.

    well ther eis a 32 char limit for a file name .and an 80-something limit for the total path i think. Usually though i get an error message that just says so much or simply that an erro occured and the file couldnt be saved. Also if you have a super long name that youve saved on the windows machine youll usually get the DOS name of the file when browsing from a mac.

  • File name size

    What is the maximum number of characters a file name should have? I was copying files from another Mac to a ZIP disk to put on my new iMac when copying stopped and reported an error relating to the files names. Some names were more than 22 characters. I shorten all name to less than 20 characters and no more problem.

    In addition to Duane's advice, it may be the names of the files. Especially if the Zip disk is formatted for MS-DOS/Windows. If any of your files include any of the following characters, you'll have to change them to something else.
    ? [ ] / \ = + : ; " ,
    Otherwise, file name length depends on the application or OS. Mac OS 9 or earlier is limited to 31 characters or less. OS X applications can be up to 256 characters. But if it's an older application that was updated to run natively under OS X, it may still be limited to creating file names of 31 characters.
    MS-DOS is limited to an 8.3 name. Windows/Joliet file names can be 256 characters, but that includes the file name path. So a file on the C: drive with a path like c:\windows\system\ can be only as long as 256 minus the number of characters in the file path. In this case, 18 in the path leaves a usable file name of 238.

  • Sorting string like windows file name sorting

    Hi everybody, I have a simple question.
    I was trying to sort some file name in java
    Let say we have a list of string which are :
    1.txt
    a.txt
    2.txt
    11.txt
    a(1).txt
    a(11).txt
    a(2).txt
    If i convert those strings as file names, and sort it by file name in the windows explorer the result is
    1.txt
    2.txt
    11.txt
    a(1).txt
    a(2).txt
    a(11).txt
    a.txt
    But if i enter those strings into an Arraylist and use Arrays.sort or Collections.sort, the result is
    1.txt
    11.txt
    2.txt
    a(1).txt
    a(11).txt
    a(2).txt
    a.txt
    Is there a way to achieve the string sort similar to windows rather than aplhabetically like the default sort of Arrays/Collection.
    I have done some searching but only found problem regarding to different language character sorting which can be achieved using Collator but this was not my case. Has anybody encounter this issue ?
    Any help is greatly appreciated
    regards
    Hendra Effendi

    ballistic_realm wrote:
    Let say we have a list of string which are :
    1.txt
    a.txt
    2.txt
    11.txt
    a(1).txt
    a(11).txt
    a(2).txt
    If i convert those strings as file names, and sort it by file name in the windows explorer the result is
    1.txt
    2.txt
    11.txt
    a(1).txt
    a(2).txt
    a(11).txt
    a.txt
    ...Not sure, but wouldn't Windows sort it like:
    1.txt
    2.txt
    11.txt
    a.txt
    a(1).txt
    a(2).txt
    a(11).txt
    If so, the try something like this (UNTESTED!):
    class WindowsFileNamesComparator implements Comparator<String> {
        public int compare(String a, String b) {
            String[] tokensA = tokenize(withoutExtension(a));
            String[] tokensB = tokenize(withoutExtension(b));
            int max = Math.min(tokensA.length, tokensB.length);
            for(int i = 0; i < max; i++) {
                if(tokensA.equalsIgnoreCase(tokensB[i]))
    continue;
    else if(tokensA[i].matches("\\d+") && tokensB[i].matches("\\D+"))
    return -1;
    else if(tokensA[i].matches("\\D+") && tokensB[i].matches("\\d+"))
    return 1;
    else if(tokensA[i].matches("\\d+") && tokensB[i].matches("\\d+"))
    return Integer.valueOf(tokensA[i])-Integer.valueOf(tokensB[i]);
    else
    return tokensA[i].compareTo(tokensB[i]);
    return tokensA.length - tokensB.length;
    private String[] tokenize(String s) {
    List<String> tokens = new ArrayList<String>();
    Matcher m = Pattern.compile("\\d+|\\D+").matcher(s);
    while(m.find()) {
    tokens.add(m.group());
    return tokens.toArray(new String[]{});
    private String withoutExtension(String s) {
    int lastDot = s.lastIndexOf('.');
    return lastDot < 0 ? s : s.substring(0, lastDot);

  • How do I customizing the download pop up window file name?

    I have a site that streams a PDF. The file name is not included in the URL. When I set my options to Save As for Adobe I am presented with the Download pop up box, but there is no extension in the box so when I double click the item it asks what file to open it with. So my question is, is it possible to be able to customize the name of the file being saved rather then letting the browser determine the name based on the URL?

    A good solution, but I went one better -  I got rid of the HP Printer and bough an Epson.
    The problem no longer exists.

  • Ipod mini - Mac - Windows - FILES

    Hi,
    Does anyone know if files duplicate when using the ipod mini as a hard-drive?
    For example, when saving a file (eg. word file) on the ipod from a Mac computer, will the file appear as duplicated when connecting the ipod to a Windows computer? (It doesn't duplicate on Mac however.)
    I have been using this USB hard drive recently and when I saved files on it from a Mac computer, the files appeared duplicated when I saw it in Windows explorer.
    Unfortunately, I made the mistake of deleting all the duplicated files (when using the Windows computer) only to find out all remaining files could no longer open; and this was not my USB.
    I am considering purchasing the ipod mini (or shuffle). Could you tell me if I would expect this duplication of files (seen when connceted to a Windows computer) to occur when using the ipod as a hard drive? And if it does occur, how may I get around this issue?
    Thanks for your help.
    Alan.

    Are the 'duplicate' files the exact same size? I'm wondering if they're some sort of 'information' file put on it by the MAC that the MAC file explorer automatically hides, but Windows doesn't.
    Having said that, you'll have to format your mini on a PC to make sure both types of computers 'see' it . . . but other than the hassle of carrying around the cord, I can't see any other issues.
    Good luck!

  • Mac - Windows File Sharing not working

    Hi there,
    I want to use Lion's SMB File Sharing from my MacBook Pro (mid-2012) and my PC running Windows XP. Currently, my list of Windows users on my Mac is empty, and everytime I try to log in from my PC, I get a prompt asking me to log in, but no matter which passwords I enter, they don't work.
    Can anyon help me? Thanks!
    PS A bit off topic, but my Screen Sharing option is missing too...

    OK, good. (although, dd-wrt doess appear to be non-standard openSource firmware, making these routers harder to troubleshoot for us mere mortals).
    But, yes about network name. if you can see the Mac in NetworkPlaces, this is good.
    Thank you for clarifying bit-by-bit that the work network and the home network are your own setups, and the they're that identical.
    As much information as you can provide is helpful.
    I think you're going to find concrete clues to your problems...in the samba logs. it's not really a "test", it's merely looking into the logs during the time ( or finding the times where the connection fails)...and you will find the reasons that the connection fails.
    Good luck

  • Mac Windows file system

    I have a 500gb external hard drive that I'd like to use on both my mac and pc and I'm not sure what file system to format it in or what program i should use to format it with? I believe Fat 16 or 32, I'm not sure can be formatted with disk utility but there are file size limitations.

    Is there a file system with no space limitations?
    Every filesystem has some size limit, and FAT32 is the best of those which can be read and written by Mac OS X and Windows out of the box. Third party software is needed to use any of the others.
    (49890)

  • "Save as..." window - file name bug

    http://forums.adobe.com/message/3030230
    I have the same problem.
    I'm using Windows XP SP3 Professional (x86). Audition version 3.0, build 7283.0. My copy is registered.
    Some additional notes:
    File format doesn't matter; I've tried WAV, MP3 and FLAC.
    I have tried reinstalling Audition. I uninstalled it via a program called Revo Uninstaller. I've searched through the registry after uninstallation, and could not find any leftover keys or values.
    I'm not using any visual themes. The Windows service "Themes" is disabled.
    Any idea how to solve this?

    You've provided good information in describing your situation, thanks.  There's more likelihood that this is a Windows or graphics driver problem than with Audition.  Many of us run it on XP sp3 with great success.  I would recommend the following:
    --make sure all Windows updates are current
    --check your graphics card for an updated driver
    --less likely to address this specific problem, but it can't hurt, is to install the Audition 3.01 update available here: http://www.adobe.com/support/downloads/product.jsp?product=92&platform=Windows. This update is highly recommended anyway.
    Should you have success with any of these options, please report which was helpful!

  • Mac file name restrictions/special characters

    What are the Mac OS file name restrictions? What are the special characters to avoid?
    Is this a legitimate file name? Are the colons allowed?
    /Users/Joe/Desktop/MyDocument 3:2:06.xls
      Windows XP Pro  

    Thanks, Sagesse. I'm new to the Mac OS. Is it tied to Unix in such a way that the colons are allowed?
    A user tried to provide a file with a name similar to that in my original post (e.g. "name 3:4:07.rtf") using a web form, and I'm at a loss as to how they could have saved it with the colons. Thank you for your assistance.

  • File names are not being created correctly!!

    Problem I have, and it seems to be an issue with iTunes in Windows and not Mac or in Windows Media Player for that matter.
    Anyway, the problem is that the files are not being written as they are displayed in the Album Data in iTunes itself. It just appears as though iTunes will create any length of file name it wants and not the one that you create??
    The reason I have an issue with this, is because I am trying to create one large album directory on an external Hard Drive connected to my Router so that any machine I have on the network can access it from there as opposed to creating a directory on every single machine.
    I have a tone of discs that I am loading up and just felt that having one large directory on a networked drive would be the best route to take.
    The machines I will be using to access the files using iTunes is my Mac Mini and my Windows PC depending on what room I am in, and then probably a few other devices scattered around the house to make up a Media network.
    Anyway, the issue is with the file names.
    It just seems that Windows iTunes wants to create whatever file name size it pleases, where as Mac iTunes and Windows Media Player seem to create the files as listed in the Track List and Album File Data.
    It would seem that Windows iTunes has a serious bug in it's File Structure Handling which is a pain in the proverbial.
    Just to test this out, I created the same Album both in Windows and Mac and the Mac version had the full file name structure but the PC one doesn't, however, Windows Media Player created it exactly the same as Mac iTunes.
    It definitely appears as though there is an issue with iTunes in Windows, because it creates other albums without a problem. It just seems to pick and choose as it pleases.
    Anyone else get this or know if there is a way to fix it??

    Katrina S. wrote:
    I'm not sure what you mean. Perhaps if you gave a specific example?
    I put my CD's into iTunes so that they go in Album Format with the albums in seperate folders and the song names as they are retrieved from the internet, so that they are not songs all in one long Directory Listing. (Unless of course there is another way of using iTunes??)
    When using iTunes on Mac or the Windows Media Player, all the songs are loaded onto the computer as they are written in the descriptions downloaded from the web.
    Example in Directory format:
    Artist Album Song Name
    Queen - Innuendo - 08 These Are The Days Of Our Lives
    This works fine in Mac iTunes or Windows Media Player. However, if I'm using iTunes in Windows, it may give me the following,
    Artist Album Song Name
    Queen - Innuendo - 08 These Are The Days O
    Now, that is just an example and not a song that is affected, but it gives you an idea of what happens. It appears to happen on any Album and File Name combinations, and only appears to happen when using iTunes in Windows. The much longer filename and album names seem to be far more affected and I think this is to do with Windows Naming structure, but it doesn't explain why it's not happening in Windows Media Player??
    The problem with this, is that when trying to use the same File Directory stored on my external Networked HDD for both Apple and Windows iTunes, the Windows version is causing havoc by doing what it wants where as the Apple iTunes seems to work as intended.
    So when it comes to using either to rip a new CD to the library, I have to start using the Mac Mini each time because it seems to not be causing any issues when ripping discs.
    I'm still in the process of sorting out my Album Directory and having to load everything up on the iMac so that everything gets loaded properly, but this seems to be a really bad bug in iTunes.
    The reason I want to use this external NAS HDD is to keep my data in one area as opposed to having two large directories for both machine formats.
    I hope that is a little more clear on what is happening.
    P.S. Just to add to this. I prefer to use the PC for CD Ripping because the CD Drive is much faster than my Mac Mini and doesn't get anywhere near as hot when used constantly. I can rip 20 albums or more on my PC in the time it takes to sometimes rip just 5 to 10 on my Mac Mini, which is why I wanted this to work properly on the Windows version of iTunes.
    Message was edited by: Capeview

  • HT4221 Synched Photos from PC should be in File Name Order, not by last modified date

    Since installing IOS 7 the sorting of my photos from my PC sent to my Iphone have become totally random.
    Apple claims the files are by Last Date Modified.
    I have a very detailed file naming system on my PC which makes Photo Retrieval by Date, Name, Subject easy.
    Is there any software that recognizes the Windows File Name?  The sequence file names given during SYNCH are useless.

    When you import into iPhoto, each imported set goes into a folder called Last Import.
    One way to do what you want without losing your organization:
    iPhoto / File / Import to Library. Navigate to the first folder on the pc. and click on Import. The contents of the folder on the PC will all come together.
    On the Mac the photos will be in the folder called Last Import.
    On the Mac, create a new folder with the name you want. (File Menu / New folder)
    Move the photos as a batch (select all) from the Last Import folder to the one you just named.
    Do this as many time as you have folders.

  • File Name Character Limited to 31 - New or something I've done?

    I have been using my MacBook Air with Mavericks for ~6 months and just started getting file name size limit of 31 character warnings a few days ago.  I have many files saved with much longer file names but now cannot go over the 31 character limit.  Have I inadvertantly changed a setting or is this something new in a recent update?
    Bottom line - how do I get back to using longer fle names?
    MacBook Air, OS X Mountain Lion (10.8.4), MBA 11" Loaded (1.7G / 8G / 512G)

    call Apple Care - 800-275-2273
    But I doubt that you will get FaceBook support from Apple - I'd suggest calling FB support
    LN

Maybe you are looking for

  • Error while uploading app to App Store

    I archived my app and selected a valid distributuin profile for my App.When I try to distibute the App I get the followng error as shown in the screenshot. someone please help me to fix the problem.

  • Maximum open cursors exceeded!!!

    Hi All, While executing a procedure am getting this error: Error: ORA-00604: error occurred at recursive SQL level 1 ORA-01000: maximum open cursors exceeded Could you please guide me how to get rid of this kind of error and how to close all open cur

  • Windows 7 Professional 64-bit

    Hi Trying to install Win 7 onto my new Mac Pro. Software update worked fine, the ISO I burned myself from the downloaded MSDN seemed to be working OK as well. However, after using Boot Camp and starting the Win 7 install, I get an error message 21% t

  • Aperture 3.3.1 suddenly won't launch

    My 2009 iMac 21.5" had to be replaced after the hard disk and logic board both suddenly failed. Luckily I had backed up my data recently. I started by migrating data and apps from my 2007 Macbook. Then I updated the Aperture library from the vault on

  • Disappearing windows in 10.3.9

    I just copy some m2v files to a firewire drive in a G5 with Tiger on it. Then hooked it to a G4 running panther; the Icons for those m2v files look generic and I can only view the content of the drive in "colums" view mode, from a finder window. When