Menu

#506 Avoid overwrite media files when upload new ones

phpGedView
open
5
2006-06-20
2006-01-02
No

It would be nice if when uploading media files a check
is done about the name of the file.

If the file already exists, the new one should be
renamed using some kind of serialization.
ex: filename.jpg, filename_001.jpg, filename_002.jpg

This way we avoid that a user uploading a file could
overwrite a previous existing file.

Thanks.

Discussion

  • Heike

    Heike - 2006-01-06

    Logged In: YES
    user_id=1062409

    I have a problem with this request.
    I always name the mediafile of a person name + surname +
    birthdate. This mediafilename is attached to the person in
    the gedcom file. Lately I happened to receive often
    photographs from family-members in better quality then the
    one I had before, or familymembers wanted to have another
    photo displayed then the one I uploaded. In that case I
    save the jpg on my pc, giving them the same name as usual.
    Now I just have to upload the "new" mediafile only, without
    making any change in the gedcom. In having the filename
    renamed automatically, I would have to change the gedcom-
    entry. As I do this on my PC locally, and the rename would
    be done in the www, I would have a problem there, besides
    having caused more work.
    As I use filezilla for uploading files, I'm asked there
    whether I want the existing file to be overwritten. So
    secure enough for my purpose.
    Heike

     
  • Gonzalo Esteban

    Gonzalo Esteban - 2006-01-08

    Logged In: YES
    user_id=740305

    heikeelashi:

    My request is compatible with your way to update media files.

    I request the feature for files uploaded by users using the
    application with rights to do it.
    When the media upload is managed by users, every user can
    upload a media file without validating that other file not
    related can have the same filename.
    This can lead to destroy data.
    Let's say that a user upload the file "john.jpg" for John
    Smith and other user upload other different file named
    "john.jpg" for John Wesson. AS you can see, this will
    destroy data.

    With my proposal, the first file will be saved as john.jpg
    and the second, as there is a previous file with the same
    name, will be saved as john_001.jpg without lose of data.

    If you upload files directly to the media directory, of
    course you will be able to overwrite the files as needed.

     
  • KosherJava

    KosherJava - 2006-01-08

    Logged In: YES
    user_id=634811

    I think that this request is when uploading a file using PGV
    and not and external FTP/SCP program. With an FTP client,
    you are correct that you get warnings etc, but what happens
    when this is done via PGV's file upload? You don’t see a
    list of all the files, and I don't think that there is an
    easy way to tell that you are overriding something. I don’t
    really use the editing in PGV, so I might be mistaken. I
    think that we should look at notifying the user that a file
    of the same name is in use, is linked to individual/family
    x,y,z and offer an option to
    a) cancel the upload
    b) overwrite
    c) save it with a different name (and give the user the
    option of renaming it).

     
  • KosherJava

    KosherJava - 2006-06-20
    • assigned_to: nobody --> canajun2eh
     
  • KosherJava

    KosherJava - 2006-06-20

    Logged In: YES
    user_id=634811

    Is this in the 4.0 media enhancements?

     

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.