Document library: File name with spaces at EOF

I noticed a strange issue with uploading files with space at end of file (example "ABC  .xlsx"). Such files are allowed to be uploaded for the first time but when the end user (with contribute permission) tries to upload the same file again
(overwrite) then it uploads the file and goes to the next dialog box where properties for the form is collected (EditForm) and then when user tries to hit save, he gets "Sorry this site is not shared with you" error. The owners (with Full control
permission) get the error message that the file needs to be renamed. 
This does not happen with files having proper names. The files are automatically overwritten as expected.
Is it a SharePoint bug or am I missing something ?

Hi Prakash,
When we upload a document which contains spaces at the end of the file name, then SharePoint will trim out the spaces in the Edit Item Form, so the name for this document should be “ABC.xlsx”.
When we re-upload the document to SharePoint, because of that extra space it sees the filename(ABC  .xlsx) as different to the existing document (ABC.xlsx) so it adds it as a new document.
And in the edit item form, the space has been trimmed out. Because there is already a document with that filename in the document library, it throws the error.
So this issue is by design that SharePoint uploads the document first and then edit the properties of the document.
For more details, please refer to the link below:
https://discoverlars.wordpress.com/2012/10/27/sharepoint-doesnt-overwrite-a-document-with-the-same-name-but-creates-duplicates/
Thanks,
Victoria
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Victoria Xia
TechNet Community Support

Similar Messages

  • Sharepoint document library file name column in content database?

    Hi,
    How to get a sharepoint document library file name column in content database?
    Thanks
    Poomani Sankaran

    You're not supposed to develop any solutions accessing the content database directly. It's not supported. Document Library Filename is stored in LeafName column, table: AllDocs.
    2.2.6.1 AllDocs Table
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • File download - file name with spaces

    I use the resp.setHeader("Content-disposition", "attachment; filename="+filename) method. it works. However, when the file name contains spaces the dowloaded file's name is only the part of the string up to the space, nothing more. Is there a way to deal with it? I'm replacing spaces for '_' at the moment but that's not exactly what I want.
    Thanks.

    Is the filename put in between quotes?
    resp.setHeader("Content-disposition", "attachment; filename=\"" + filename + "\"")

  • File name with spaces

    Hi,
      I am unable to upload files with file name having blank spaces to cFolders 4.0.
    Kindly help me to resolve this issue.
    Regards,
    Shynu John

    Hi Shynu,
    Please refer the following note.
    Note 959280 - File names with special characters are uploaded incorrectly.
    Regards,
    Pavan

  • QT v10.0 "save for web" creates file names with spaces?

    I find it strange that the additional exported files from "save for web" (iPhone, etc) auto exports files with spaces in the file names. Not only that, but changing the file names breaks the javascript.
    I work on a server that denies permission to files with spaces in the file names. I know it's a bit archaic - but it's also a long standing tennent of "good HTML" to creates files with a hyphen or underscore instead of a space.
    Is this something that can be addressed in the next update?

    If your using cs5 or cs6 you might try Image Processor Pro which seems to use underscores
    and has a save for web option.
    Dr Browns Services 2.31
    http://www.russellbrown.com/scripts.html

  • Al11 file name with spaces

    Hello all
    I'm trying to create file on server that have spaces, but name is being cut. For example instead of creating file '/usr/tmp/file name.txt'  I'm getting  '/ust/tmp/file'. Does anybody know what cause this and how to resolve this problem?

    REPORT  ZB_TEST4.
    start-of-selection.
    OPEN DATASET '/tmp/File1 name.txt'.
    TRANSFER 'some data' TO '/tmp/File1 name.txt'.
    CLOSE DATASET '/tmp/File1 name.txt'.
    WRITE 'end'.

  • Not able to copying files/folders from one Document Library to another Document Library using Open with Browser functionality

    Hi All, 
    We have SharePoint Production server 2013 where users are complaining that they are not able to copy or move files from one document library to another document library using “Open with Explorer” functionality.
    We tried to activate publishing features on production server but it did not work. We users reported following errors:  
    Copying files from one document library to another document library:
    Tried to map the document libraries and still not get the error to copy files: 
    In our UAT environment we are able to copy and move folders from using “Open with Explorer” though.
    We have tried to simulate in the UAT environment but could not reproduce the production environment.  
    Any pointers about this issue would be highly appertained.
    Thanks in advance
    Regards,
    Aroh  
    Aroh Shukla

    Hi John and all,
    One the newly created web applications that we created few days back and navigated to document library, clicked on “Open with Explorer”, we get this error.
    We're having a problem opening this location in file explorer. Add this website to your trusted and try again.
    We added to the trusted site in Internet Explorer for this web application, cleared the cache and open the site with same document library but still get the same above error.
    However, another existing web application (In same the Farm) that we are troubleshooting at the moment, we are able click on “Open with Explorer”,  login in credentials opens and we entered the details we are able to open the document
    library and tried to follow these steps:
    From Windows Explorer (using with Open with Explorer), tried to copy or move a files to
    source document library.
    From Windows Explorer moved this file to another destination document library and we got this error.
    What we have to achieve is users should be able to copy files and folders using
    Open with Explorer functionality. We don’t know why Open with Explorer
    functionality not work working for our environment.  
    Are we doing something wrong? 
    We have referred to following websites.
    we hope concepts of copying / Moving files are similar as SharePoint 2010. Our production environment is SharePoint 2013.   
    http://www.mcstech.net/blog/index.cfm/2012/1/4/SharePoint-2010-Moving-Documents-Between-Libraries https://andreakalli.wordpress.com/2014/01/28/moving-or-copying-files-and-folders-in-sharepoint/
    Please advise us. Thank you.
    Regards,
    Aroh
    Aroh Shukla

  • I am using OSX 10.9.5 and Outlook Web App for emails. When I download an attachment it replaces the space in the file name with   - how can I change this?

    I am using OSX 10.9.5 and Outlook Web App for emails. When I download an attachment it replaces the space in the file name with %20  - how can I change this?

    Click on the below link :
    https://get.adobe.com/flashplayer/otherversions/
    Step 1: select Mac OS  X 10.6-`0.`0
    Step 2 : Safari and FIrefox
    Then click on " Download Now"  button.

  • When I print, a last page is printed with a summary of document printed - file name, directory, ...

    When I print, a last page is printed with a summary of document printed - file name, directory, ... Just got Windows 8. Is this something I can stop? Waste of paper and ink!!

    Hi RebeccaQ,
    Generally speaking, a summary page, document summary or document properties page is often generated based on a setting in the software application being used as opposed to the printer driver or menu setting.  For example, in MS Word you can select to print this page with each printed document.  In this case, depending on your version of Word, you can enable/disable the feature often in "Word Options", "Display", "Printing Options", "Print Document Properties".
    Does this help?  If not, which printer model and software application is being used when the summary is printed? 
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Wiki library file name & url

    Hi All,
    How to get the wiki library file names & url's using c#? Let me know if you have any queries
    Regards,
    Kumar

    Hi,
    From your description, my understanding is that you want to get file name and URL in wiki page library with C#.
    You could try this code below:
    // your site url
    using (SPSite site = new SPSite("http://sp/sites/sharepoint2013"))
    using (SPWeb web = site.OpenWeb())
    // get the document library
    SPList docs = web.Lists["pageLibrary"];
    foreach (SPFile file in docs.RootFolder.Files)
    var url = "http://sp/" + file.ServerRelativeUrl;
    var name = file.Name;
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • FILE NAME WITH FILE EXTENTIONS

    HI EXPERTS!!
    I WANT TO GET THE FULL FILE NAME STRORED IN THE SERVER FOLDER. I USED  FM RZL_READ_DIR_LOCAL BUT I AM GETTING ONLY 32 DIGITS OF NAME NOT FULL NAME AND ALSO SIZE PARAMETER IS CONCATENATING WITH NAME.
    I WANT THE FILE NAME WITH FILE EXTENTIONS(TXT. .PDF ETC)..
    PLZ SUGGEST ME HOW TO GET THE SAME..
    PLZ REPLYE ME..
    MAHESH

    Hi Mahesh,
    Try the below FM in the below code.
      DATA:
        LV_PERMISSION(10),                 " Permission
        LV_H2,                             " H2
        LV_FLNM(13),                       " File name
        LV_USER(10),                       " User
        LV_GROUP(10),                      " Group
        LV_SIZE(15),                       " Size
        LV_MONTH(3),                       " Month
        LV_DAY_C(2),                       " Day
        LV_YEAR(5),                        " Year
        LV_FILE_NAME       TYPE FILE_NAME, " Filename
        LV_JUNK,                           " Junk
        RETURN_CODE      TYPE I.           " Return code
      DATA:
        CMD_PARAMS LIKE SXPGCOLIST-PARAMETERS,
                                           " External prg.parameters
        CMD_OUTPUT TYPE BTCXPM OCCURS 0,   " Log message
        STATUS TYPE EXTCMDEXEX-STATUS.     " Status
      CONSTANTS:
        LC_DIR TYPE C VALUE 'd'.           " Directory
      FIELD-SYMBOLS: <CMD_OUTPUT_LINE> LIKE LINE OF CMD_OUTPUT.
      CMD_PARAMS = PV_DIRECTORY.
      CLEAR CMD_OUTPUT.
      CALL FUNCTION 'SXPG_CALL_SYSTEM'
           EXPORTING
                COMMANDNAME                = 'Y_LS_LN'
                ADDITIONAL_PARAMETERS      = CMD_PARAMS
           IMPORTING
                STATUS                     = STATUS
                EXITCODE                   = RETURN_CODE
           TABLES
                EXEC_PROTOCOL              = CMD_OUTPUT
           EXCEPTIONS
                NO_PERMISSION              = 1
                COMMAND_NOT_FOUND          = 2
                PARAMETERS_TOO_LONG        = 3
                SECURITY_RISK              = 4
                WRONG_CHECK_CALL_INTERFACE = 5
                PROGRAM_START_ERROR        = 6
                PROGRAM_TERMINATION_ERROR  = 7
                X_ERROR                    = 8
                PARAMETER_EXPECTED         = 9
                TOO_MANY_PARAMETERS        = 10
                ILLEGAL_COMMAND            = 11
                OTHERS                     = 12.
    Check Status first then check sy-subrc
      CASE SY-SUBRC.
        WHEN 0.
          CASE STATUS.
            WHEN 'F'.
              MESSAGE I057(YS) WITH 'SXPG_CALL_SYSTEM'(002).
              GF_EXIT = GC_TRUE.
            WHEN 'E'.
              MESSAGE I058(YS) WITH 'SXPG_CALL_SYSTEM'(002).
              GF_EXIT = GC_TRUE.
            WHEN 'S'.
              MESSAGE I059(YS) WITH 'SXPG_CALL_SYSTEM'(002).
              GF_EXIT = GC_TRUE.
            WHEN 'C'.
              MESSAGE I061(YS) WITH 'SXPG_CALL_SYSTEM'(002).
              GF_EXIT = GC_TRUE.
          ENDCASE.                         " CASE STATUS.
        WHEN 1.
          MESSAGE I048(YS) WITH 'SXPG_CALL_SYSTEM'(002).
          GF_EXIT = GC_TRUE.
        WHEN 2.
          MESSAGE I049(YS) WITH 'Y_LS_LN'(003).
          GF_EXIT = GC_TRUE.
        WHEN 3.
          MESSAGE I050(YS) WITH 'SXPG_CALL_SYSTEM'(002).
          GF_EXIT = GC_TRUE.
        WHEN 9.
          MESSAGE I054(YS) WITH 'SXPG_CALL_SYSTEM'(002).
          GF_EXIT = GC_TRUE.
        WHEN 10.
          MESSAGE I055(YS) WITH 'SXPG_CALL_SYSTEM'.
          GF_EXIT = GC_TRUE.
        WHEN 11.
          MESSAGE I056(YS) WITH 'SXPG_CALL_SYSTEM'(002).
          GF_EXIT = GC_TRUE.
        WHEN OTHERS.
          MESSAGE I022(YS) WITH SY-SUBRC.
          GF_EXIT = GC_TRUE.
      ENDCASE.                             " CASE SY-SUBRC.
      IF GF_EXIT = ' '.
        READ TABLE CMD_OUTPUT ASSIGNING <CMD_OUTPUT_LINE> INDEX 1.
        IF SY-SUBRC = 0.
          CONDENSE <CMD_OUTPUT_LINE>-MESSAGE.
          IF <CMD_OUTPUT_LINE>-MESSAGE CS 'total' OR
             <CMD_OUTPUT_LINE>-MESSAGE CS 'TOTAL'.
            DELETE CMD_OUTPUT INDEX 1.
          ENDIF.
        ENDIF.
        LOOP AT CMD_OUTPUT ASSIGNING <CMD_OUTPUT_LINE>.
          CONDENSE <CMD_OUTPUT_LINE>-MESSAGE.
          SPLIT <CMD_OUTPUT_LINE>-MESSAGE AT SPACE INTO
                                          LV_PERMISSION
                                          LV_H2
                                          LV_USER
                                          LV_GROUP
                                          LV_SIZE
                                          LV_MONTH
                                          LV_DAY_C
                                          LV_YEAR
                                          LV_FILE_NAME
                                          LV_JUNK.
          IF LV_PERMISSION(1) = LC_DIR.
            CONTINUE.
          ELSE.
            LV_FLNM = LV_FILE_NAME(13).
            TRANSLATE LV_FLNM TO UPPER CASE.
            IF LV_FLNM = '1W_FIARFUNNEL'.
              PT_FILE-FILE_NAME = LV_FILE_NAME.
              APPEND PT_FILE.
            ENDIF.                         " IF LV_FLNM = '1D_FIARFUNNEL'.
          ENDIF.                           " IF lv_permission(1) = ...
        ENDLOOP.                           " LOOP AT CMD_OUTPUT
      ENDIF.                               " IF GF_EXIT = ' '.

  • Problems with replace file name with starting and ending Bates number

    When applying Bates numbers to a set of Acrobat pdf files I am unable to replace file names with the starting and ending Bates number. This is important
    for me in a legal application.
    The Bates numbers are applied to each page of each of file without any problem as required.
    The Bates log file indicates that the files have been renamed as I wanted.
    I am running Adobe Acrobat Professional 9 with the update to 9.1.9 and Windows XP Service Pack 3 (the last or current service pack)
    In all other respects Adobe Acrobat 9 is running to my satisfaction.
    Has anyone else had this problem and found a solution?
    HRKExon

    Thanks for asking the question, I hadn't heard of Bates numbers before and this gave me a chance to look up something new.
    When I googled for ' bates number legal index ' I found this document:
    http://www.adobe.com/devnet/acrobat/pdfs/batesnumbering9.pdf
    Maybe that will help.
    Scott Bonacker CPA
    Springfield, MO

  • Change file name with oreilly servlet

    I am using oreilly servlet package and I want to change the file name to the file I am uploading, is this possible ?
    How ?
    Thanks.
    here I post the servlet code:
    package com.reducativa.sitio.servlets;
    * DemoParserUploadServlet.java
    * Example servlet to handle file uploads using MultipartParser for
    * decoding the incoming multipart/form-data stream
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import com.oreilly.servlet.multipart.*;
    public class DemoParserUploadServlet extends HttpServlet {
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    PrintWriter out = response.getWriter();
    response.setContentType("text/plain");
    out.println("Demo Parser Upload Servlet");
    File dir = new File("f:/");
    if (! dir.isDirectory()) {
    throw new ServletException("Supplied uploadDir " + "f:/ " +
    " is invalid");
    try {
    MultipartParser mp = new MultipartParser(request, 10*1024*1024); // 10MB
    Part part;
    while ((part = mp.readNextPart()) != null) {
    String name = part.getName();
    if (part.isParam()) {
    // it's a parameter part
    ParamPart paramPart = (ParamPart) part;
    String value = paramPart.getStringValue();
    out.println("param; name=" + name + ", value=" + value);
    else if (part.isFile()) {
    // it's a file part
    FilePart filePart = (FilePart) part;
    String fileName = filePart.getFileName();
    if (fileName != null) {
    // the part actually contained a file
    long size = filePart.writeTo(dir);
    out.println("file; name=" + name + "; filename=" + fileName +
    ", filePath=" + filePart.getFilePath() +
    ", content type=" + filePart.getContentType() +
    ", size=" + size);
    else {
    // the field did not contain a file
    out.println("file; name=" + name + "; EMPTY");
    out.flush();
    catch (IOException lEx) {
    this.getServletContext().log("error reading or saving file");
    }

    Hi there,
    I am facing the same problem that you have stated in your Feb 26, 2002 10:28 AM message regarding "change file name with oreilly servlet", I would like to change the file name to include a unique identifier upon upload, did you ever find a solution to your problem?
    Thanks!
    Todd
    [email protected]

  • File name with symbols won't delete from trash.cache\trash\cache folder.

    found this weird file name with symbols (squares nad the like) in the trash.cache\trash\cache folder. Can't seem to delete it from windows, can't get at from the dos prompt. Windows safe mode won't delete it.
    Any suggestions as to what it is and how to get rid of it.
    At present am trying reinstall of firefox and virus scan.
    Thanks
    Peter

    I tried to do the instructions Adobe gave me but when
    I put in the disc that came with my mac and hold down
    C when it restarts it takes me to the screen to do a
    fresh install.
    At that point go to the Menu & select Disk Utility - I can't remember exactly which menu but you should be able to find it easily... there isn't too much there
    I went into the disk utility through the Apps folder
    and for somereason the option to repair isnt
    highlighted and it wont let me click it. I tried to
    repair permissions/verify but it doesnt change
    anything. I looked at the info and it says the volume
    can be repaired, but it wont let me.
    You can't Repair the disk the system is currently running the OS from - That's why you have to boot from the Installer disk (or some other start-up disk). Repair Disk addresses directory structure issues - totally separate from what Repair Permissions does.
    HTH|:>)
    Bob J.

  • File name with Dateand time stamp.

    Hi All,
    I want to generate a file with a date and time stamp.
    For that in File Receiver adaptor i am using option "Add Time Stamp" in File Construction mode. however it is generationg file name as: FileName_20082104_121211_645.txt . In this I don't know what these last three characters "_645" are? And In the File name i only want a file name with datetime stamp . I don't require underscore in between. for eg: FileName_20082104121211.txt (FileName_dateTime.txt)
    Can anybody suggest me the way to achive this?
    Thanks,
    Atul

    @FileName_20082104_121211_645
    The date time stamp in XI's file adapter will be in that format. This is to avoid over writing of files created simultaneously at the same time. So the last 3 digits is a form of an unique id to distinguish between the same.
    In case you want the format as FileName_20082104_121211, use the dynamic configuration and create the file name inside the mapping itself and pass it across.
    To get an idea about the same, ref:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 - an usage of the same.
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm

Maybe you are looking for

  • How do you get your music on your phone without syncing the whole iTunes library on your phone?

    How do you get your music on your phone without syncing the whole iTunes library on your phone?

  • Final cut pro tutorial dvd - recommendations

    Hi, I am looking for some advice, i would like to get final cut pro tutorial on dvd, aimed at an absolute beginner , i would appreciate any recommendations. thanks in adviance

  • How to Clear QBE Search Criteria?

    We have a taskflow which is invoked as a popup in a jsff page, this popup contains a table where the user can query using QBE. After the popup is closed and reopened, the search criteria in the QBE is retained. Any idea how to clear the QBE search cr

  • Form path in the registry

    Hi all, In my registry,forms60_path is set to c:\forms. I have my main form in c:\forms and a bunch of files in the c:\forms\D1 and c:\forms\D2. When I call other forms from the main form, I do call_form('\D1\'||FormA); or call_form('\D2\'||FormB); I

  • Help about web services

    Hi All, We use jdev 9i for the apps development. We are integrating many applications to talk to each other and get the data . For which we are planning to use web services too. My question is : Is it possible to call web services from OAF using 9i j