This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 19 - Pages: 2 [ 1 2 | Next ] - Last Post: 13 Oct 22, 10:29 Last Post By: hubert Threads: [ Previous | Next ]
hubert

Posts: 36
Registered: 28-Oct-2005
upload not deleting files
Posted: 11 Oct 22, 10:17
 
  Click to reply to this thread Reply
When I upload my album where some photos have been renamed or deleted, those old files are not deleted. (even with last versions of Jalbum and Tiger)
I guess there is a parameter somewhere saying to have a "mirror" behaviour and delete files that are not on source, but I can't find it.
(Then I use an FTP software to check and destroy)

Can you give me a clue please ?
RobM

Posts: 3,950
Registered: 4-Aug-2006
Re: upload not deleting files
Posted: 11 Oct 22, 11:08   in response to: hubert in response to: hubert
 
  Click to reply to this thread Reply
Can you confirm that the files have been removed from the local album? That is controlled by checking Preferences>Album>Synchronise output directory
hubert

Posts: 36
Registered: 28-Oct-2005
Re: upload not deleting files
Posted: 11 Oct 22, 11:37   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
yes, it's synchronized. And, moreover, my FTP synchronizer (SyncBackFree) displays only the files that are on web and not in my hard drive.
RobM

Posts: 3,950
Registered: 4-Aug-2006
Re: upload not deleting files
Posted: 11 Oct 22, 13:07   in response to: hubert in response to: hubert
 
  Click to reply to this thread Reply
hubert wrote:
yes, it's synchronized. And, moreover, my FTP synchronizer (SyncBackFree) displays only the files that are on web and not in my hard drive.
jAlbum’s uploader reads the manifest file, in the album’s root directory on the server, to speed up uploading and deleting unused project files. If you delete files outside of jAlbum and/or use another uploader then old files could be left on the server.

How are you uploading the album and how are you using SyncBackFree.

It would probably help if you could provide a link to the album and details of at least one file that was on the server that should not have been.
JeffTucker

Posts: 8,099
Registered: 31-Jan-2006
Re: upload not deleting files
Posted: 11 Oct 22, 13:21   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
I'll wager that SyncBackFree is deleting the manifest file, because that's never on the local machine. Then the jAlbum uploader no longer has any way to determine what to delete, and what to preserve, on the server side.
hubert

Posts: 36
Registered: 28-Oct-2005
Re: upload not deleting files
Posted: 11 Oct 22, 14:26   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Attachment Capture.JPG (36.0 KB)
1/ I use Jalbum to upload files, always did.
2/ Last month, I looked at a folder on the internet album, because I was looking for the url of a picture. That's when I discovered that some files were with both old and new name. (I used Filezilla for that)
3/ I started Synckbackfree to see if I could find other errors, and I did of course.
This program compares local and web, and tells what the differences are. (see picture). By default, it can delete all unknown files, but I can skip some of them (such as the manifest ; see picture).
Album : http://www.galinou.fr/album/
wrong folder : http://www.galinou.fr/album/faune/animaux%20sauvages/insectes/abeilles%20and%20co/Fourmis/slides/

BTW, I did not execute the delete function so you can have a look...
RobM

Posts: 3,950
Registered: 4-Aug-2006
Re: upload not deleting files
Posted: 11 Oct 22, 15:43   in response to: hubert in response to: hubert
 
  Click to reply to this thread Reply
The ‘Messor barbarus’ images shown on the server are not listed in the manifest file, so should have been deleted by jAlbum. I don’t know why they got left on the server, maybe checking the time stamp of the files compared to others in the same folder might indicate something.
JeffTucker

Posts: 8,099
Registered: 31-Jan-2006
Re: upload not deleting files
Posted: 11 Oct 22, 16:00   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Actually, if a file isn't listed in the manifest, jAlbum assumes that some other app put it there, and it will leave it alone.

The tricky thing about the manifest file is that if you make any changes to the contents of the server outside of jAlbum - using another FTP client, or deleting or adding some files - jAlbum isn't aware of what you've done, and the normal sync mechanism is defeated. You need to start with one clean upload from within jAlbum, and then never use any other mechanism.
hubert

Posts: 36
Registered: 28-Oct-2005
Re: upload not deleting files
Posted: 11 Oct 22, 18:33   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
I understand. Seems weird to me, because I do not remember any upload or modification of the album with another soft than Jalbum (I mean before finding some folder errors)
But I'm certainly NOT going to re-upload my album, would take a whole night long. Or more !

There is no way to tell Jalbum to recreate the manifest ?
JeffTucker

Posts: 8,099
Registered: 31-Jan-2006
Re: upload not deleting files
Posted: 11 Oct 22, 18:44   in response to: hubert in response to: hubert
 
  Click to reply to this thread Reply
You can delete the manifest file manually, then have jAlbum upload again - it will take a bit longer (because it has to check the time stamps on each file, as a regular FTP client would), and it will create a new manifest file.

But if you do that, it will not delete any extra files on the server, because it won't know who put those files on there. One might be inclined to say, "Why doesn't it just delete any file that's not part of the current album?" It's because there may be other files on the server that are needed - there might be robots.txt files, .htaccess files, server password files, custom 403 and 404 error pages, and so on. jAlbum can't just assume that anything it doesn't recognize can be dumped.

It might be handy to have an option in the uploader that says, "Upload the current album. If you find any other files in the target directory on the server, delete them, whether they're listed in the manifest file or not." It would need to have a fairly forceful "ARE YOU SURE?" dialog, to avoid disasters.
hubert

Posts: 36
Registered: 28-Oct-2005
Re: upload not deleting files
Posted: 11 Oct 22, 19:33   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Well, we just need a "mirror" option on the uploader, which is very well known in any FTP software.

Well, I'm going to test your idea, but I'm not at all sure it will really work :

1/ I delete the file on the server.
2/ I generate a new album
3/ upload with Jalbum manifest is recreated
4/ rename a local file
5/ upload again

see if file has been deleted.

right ?
JeffTucker

Posts: 8,099
Registered: 31-Jan-2006
Re: upload not deleting files
Posted: 11 Oct 22, 20:12   in response to: hubert in response to: hubert
 
  Click to reply to this thread Reply
You're making this far more complicated than it really is. Make a small test album on your PC. Upload it, using the jAlbum uploader. Now go back into the project and delete one image, and add another one. Make the album again and upload it again. You should see that files on the server that are no longer needed are deleted automatically. There is nothing else the user needs to do. The uploader will keep everything synchronized.
hubert

Posts: 36
Registered: 28-Oct-2005
Re: upload not deleting files
Posted: 12 Oct 22, 09:25   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Easier for me :
I deleted the manifest.
Renamed some files that need changing name anyway. Recreated album.
Uploaded.
Jalbum recreates the manifest, (I see the displayed size of the album being slowly computed) and upload files.

Well, old files are still there !
look at the folder http://www.galinou.fr/album/plantes/arbres/coniferes/autres/slides/
"Thuya orientalis" has been renamed in "Platycladus orientalis" both versions are on the web site.

hubert

Posts: 36
Registered: 28-Oct-2005
Re: upload not deleting files
Posted: 12 Oct 22, 10:05   in response to: hubert in response to: hubert
 
  Click to reply to this thread Reply
BTW, I tried your idea :

I copied the .jap file and one little folder to d:/tmp
generate
upload
rename a file
generate again
upload

and YES the old file is deleted.

This means there is a problem on my true album, right ? but... where is it ?
RobM

Posts: 3,950
Registered: 4-Aug-2006
Re: upload not deleting files
Posted: 12 Oct 22, 11:15   in response to: hubert in response to: hubert
 
  Click to reply to this thread Reply
The manifest file has just one entry for ‘Thuya orientalist’ which is
plantes/arbres/coniferes/thumbs/folder/autres_Thuya orientalis 'Aurea Nana'b 2015.jpg

There is no entry for a slide image. Is that file used as a folder thumbnail or something else?
Not sure if a directory ‘thumbs/folder/‘ is a Tiger construct or not.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums