Removing a rogue image

Discussion in 'HTML & Website Design' started by Weirfire, Dec 12, 2005.

  1. #1
    I have an image on one of my hosting packages which is called ALLI\'S FILM0006.jpg

    When I go to delete it, it ignores the command and the image remains. Does anyone know how I would delete the image?


    Thanks
     
    Weirfire, Dec 12, 2005 IP
  2. fsmedia

    fsmedia Prominent Member

    Messages:
    5,163
    Likes Received:
    262
    Best Answers:
    0
    Trophy Points:
    390
    #2
    I would suggest either going into FTP and selecting DELETE on that file or logging in to SSH and using the 'rm' command to remove the file. If neither of those work, I suggest contacting your provider to help figure it out and see if there is a permission problem or what is going on.
     
    fsmedia, Dec 12, 2005 IP
  3. jbw

    jbw Peon

    Messages:
    343
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    How are you trying to delete it?

    Did you try 'rm ALLI\\\'S FILM0006.jpg' ?
     
    jbw, Dec 12, 2005 IP
  4. tflight

    tflight Peon

    Messages:
    617
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #4
    In addition to what fsmedia mentioned, I'm not sure what program you are trying to delete the file with but you might try renaming the file first, and then deleting it. It is a long-shot, but with the apostrophe in the filename that could cause problems with some systems trying to delete the file.
     
    tflight, Dec 12, 2005 IP
  5. sarahk

    sarahk iTamer Staff

    Messages:
    28,807
    Likes Received:
    4,534
    Best Answers:
    123
    Trophy Points:
    665
    #5
    You're probably not the owner of the image when you use ftp - but if you have cpanel you should be able to override that and delete it from there.
     
    sarahk, Dec 12, 2005 IP
  6. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #6
    I'll try a different FTP program. I'm using Flash FXP to try and rename or delete it but so far neither work.

    What FTP programs do you guys use?
     
    Weirfire, Dec 12, 2005 IP
  7. piniyini

    piniyini Well-Known Member

    Messages:
    514
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    170
    #7
    I've got a few files that I cant delete either, I've given up on them. I use SmartFtp by the way.
     
    piniyini, Dec 12, 2005 IP
  8. sarahk

    sarahk iTamer Staff

    Messages:
    28,807
    Likes Received:
    4,534
    Best Answers:
    123
    Trophy Points:
    665
    #8
    It's nothing to do with the ftp program that you are using.

    I use smart ftp and when I view a file I can see the user and the group. Now, I'd put money down that the owner of that rogue file is not the same as the username that you use in your ftp program...

    [​IMG]
     

    Attached Files:

    sarahk, Dec 12, 2005 IP
  9. INV

    INV Peon

    Messages:
    1,686
    Likes Received:
    101
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Did you try pressing F5 to refresh after you delete. I am using FLASHFXP as well and it works great. I had a problem close to that with folders as they wouldnt delete and my host actually fixed it after I got fed up and asked them whats the problem.
     
    INV, Dec 12, 2005 IP
  10. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #10
    Happened to me several times, files that for some unknown reason can't be deleted , and you can;t even chmod them...

    I am almost sure that any FTP program won't do it... neither will cpanel, you'll have to use SHH
     
    fryman, Dec 12, 2005 IP
  11. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #11
    i remember having a .htaccess file like that once, it wouldnt delet oand couldnt be overwritten, i told my host and if i remember rightly they sorted it. (cant remember how tho - sorry)
     
    just-4-teens, Dec 12, 2005 IP
  12. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #12
    Thanks Sarah and INV.

    I tried F5 and it didn't work. I'm basically removing an account from webhost manager but I'm going through everything making sure there's nothing I want so I'll probably just end up removing everything anyway but the rogue image was just bugging me! :)

    Thanks for all the help.
     
    Weirfire, Dec 12, 2005 IP
  13. flawebworks

    flawebworks Tech Services

    Messages:
    991
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    78
    #13
    You might get the creeps at this suggestion, but I've found that many times, if you ftp with your IE browser, using your traditional ftp login, you can remove the file this way. Not always, but it has been known to work.

    If you have ssh access try rm -f (the f is for force) ALLI\'S FILM0006.jpg
    If that doesn't work try rm -f ALLI\ or rm -f ALLI\'
    If you have backups of your jpgs, go into the directory where the jpgs (and this file lives) and do a rm -f * .jpg, removing all jpgs. Then reupload the jpg files.
     
    flawebworks, Dec 12, 2005 IP
  14. flawebworks

    flawebworks Tech Services

    Messages:
    991
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    78
    #14
    More likely has to do with the \ or the '
     
    flawebworks, Dec 12, 2005 IP
  15. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #15
    You'll get the creeps at hearing this... but I wouldn't know how to FTP to my site using the IE Browser lol.

    I'm 99% sure I dont have SSH access. I remember having such access at uni but I've never used it with web servers outside uni.
     
    Weirfire, Dec 12, 2005 IP
  16. flawebworks

    flawebworks Tech Services

    Messages:
    991
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    78
    #16
    In IE, type in ftp://domainname.com
    If it's configured in IE options, you should get a password box, put in the userand pass for that account.

    Optionally; you can try (I'm doing this from memory, so it may or may not be correct - it's one ugly url):

    ftp://userid:password@domainname.com
    replacing your userid and password with your userid and password
     
    flawebworks, Dec 12, 2005 IP
  17. INV

    INV Peon

    Messages:
    1,686
    Likes Received:
    101
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Lol 2 Slow - free post i guess...
     
    INV, Dec 12, 2005 IP
  18. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #18
    lol @ INV

    Thanks Flaweb, I gave it a try but it's not working because I've already moved the domain to a new host and the IP address doesnt give me anything.

    I'm going to try removing the account now and hopefully it just deletes everything. :)
     
    Weirfire, Dec 12, 2005 IP
  19. jbw

    jbw Peon

    Messages:
    343
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #19
    I still think the issue is the \ and the ' these are often special characters and have to be escaped.
     
    jbw, Dec 12, 2005 IP
  20. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #20
    same here jbw.

    I think the best advice is to not upload images with ' in them. :)
     
    Weirfire, Dec 12, 2005 IP