Menu

#2496 4952: OBJ bouble blanks removed from external file name

v4.2.0
open
None
5
2009-01-31
2009-01-30
No

Hallo,

if your external file name contains 2 succinding blanks, only 1 will stored in gedcom link and you get a "file not found" error.

This happens even you do an import or use addmedia.php

examp:
>>>1826 S01r - Konfirm N1-3.jpg<<< is stored as
>>>1826 S01r - Konfirm N1-3.jpg<<<

regards
Frank

Discussion

  • Meliza Amity

    Meliza Amity - 2009-01-30

    I was just to report this.
    Users fill media with their file-names that may contain more than one consecutive blank.
    We have already had this issue in the past.
    In 4.1 this worked still OK.

    The file remains with the two blanks, but the file name in the media table is with just one blank.

    PGV does not enable to update the file name, because it does not find the file.

    Meliza

     
  • Gerry Kroll

    Gerry Kroll - 2009-01-31

    There's not much we can do about this. That's the nature of browsers: they collapse multiple blanks to one.

    Moral:
    "don't do this". It's best to not have any blanks in file names at all.

     
  • Anonymous

    Anonymous - 2009-01-31

    Hi Gerry,

    it isn't a browser problem at all. The files were added about 2 years ago under a pre release of pgv.

    The mismatch happened in the last time, after reimporting the gedcom when updating from 4.1.6 to 4.2.

    I changed all the (20) filenames on my server, so we have a simple workaround.

    regards
    Frank

     
  • Meliza Amity

    Meliza Amity - 2009-01-31

    Gerry,

    We cannot teach every user how to create his file-names.
    We can 'teach' PGV not to remove spaces from media file-names when the data is imported.

    I do not like to change the filename created by the user.

    I also updated now my existing files that had the blanks using filemanager outside PGV.
    In the future this will be more complicated because the file-name with the spaces will not exist in DB tables.

    Because of the update I now miss these files in my 4.1 sites.

    Meliza

     
  • Gerry Kroll

    Gerry Kroll - 2009-01-31
    • assigned_to: nobody --> canajun2eh
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.