Page 1 of 1

Error. File already exists - missing images - deleting image

Posted: 17 Jul 2009, 01:18
by awebsitedesigner
Hello I have searched the documentation and the forums on this, I was very surprised to not find anything relevant.
When I delete an image in Phoca Gallery it dissapears but the image isn't actually deleted. I can see it in the media manager but can't see it in Phoca Gallery. So then when I go and try to upload the image again it gives me an error saying Error. File already exists.

There must be something I am missing but is it supposed to delete the image from the site when you tell it to? If not is there a way to have it do this? If not is there a way to view the missing images or somehow get them back into Phoca.

I know I can go to the media manager and delete them and then try again but I have installed this component to manage images it makse no sense to send the client to the media manager to do something as basic as deleting an image.

Thankyou for your help.
Dan

Re: Error. File already exists - missing images - deleting image

Posted: 17 Jul 2009, 02:26
by awebsitedesigner
Or another solution could be just to overwrite the image if its already there or even prompt to overwrite the image.

Re: Error. File already exists - missing images - deleting image

Posted: 21 Jul 2009, 20:31
by Jan
Hi, Phoca Gallery doesn't delete original images only thubmnails which it has created. It doesn't delete files which it didn't create because these images could be uploaded by other function and can be used for e.g. other images (in other category), so they should be removed in media manager or via ftp.

Jan

Re: Error. File already exists - missing images - deleting image

Posted: 22 Jul 2009, 00:51
by awebsitedesigner
Hi mate, thanks for this. The problem is even if the image was added by phoca it still won't delete it?

Re: Error. File already exists - missing images - deleting image

Posted: 23 Jul 2009, 22:41
by Jan
Hi, do you mean thumbnail?

Original images are added by users, they are not produced from Phoca Gallery as thumbnails

Jan

Re: Error. File already exists - missing images - deleting image

Posted: 24 Jul 2009, 01:59
by awebsitedesigner
I'm confused. I log into phoca, upload some images then decide I want to change one of the images so I delete it (all via phoca). When I delete it, it dissapears but the actual image isn't removed only the thumbnail is so when I try to upload the new version it again it doesn't work. I have to go into the media manager and remove the image that I can't see via phoca.

Surely is the image is uploaded via phoca it can be deleted via phoca? It seems strange that I would have to train my clients to use the media manager as well as Phoca. No other image galleries that i know of work that way.

Re: Error. File already exists - missing images - deleting image

Posted: 24 Jul 2009, 13:47
by Jan
Hi, Phoca Gallery is no media or file manager (it doesn't have such functions, in other case its size can be e.g. 5 MB).

Phoca Gallery can display images on your server (you can upload the images many ways: via ftp, via media manager, via java upload, via flash upload). Yes, in Phoca Gallery there are some help functions to upload the images into your server (stanard upload, java upload, flash upload). But the uploaded files on the server don't have any dependecies to Phoca Gallery. These are only files on the server which should be managed e.g. by ftp or media manager. If you will add some image into Phoca Gallery then the filename is saved into the database and thumbnails are created.

If you will delete the image:

- the filename is deleted from database
- all thumbnails are deleted from server (if they are not used by other image. You can save the same image into more categories and they use only one thumbnail on the server, e.g.)

But Phoca Gallery doesn't know if the original images (it doesn't created them) are not used for some other application or extensions, so it doesn't delete them automatically.

So, Phoca Gallery is no file manager but it includes some function which can help you to upload the files to server. But managed can be the files in other application. I hope, you understand that one application must not include functions which are included by other applications.

Now, because of comfort of users, some upload functions are there, but they should not be there because of duplicity. Normally gallery should not include upload functions (in backend) as this is a duplicity and the code is too large because of it. But yes, we have done a compromise between comfort of users and extension size, so the upload functions were added. There are thousands of functions which can be added into Phoca Gallery, because of it there must be some selection, so users can work with the gallery easily. And there are many ways how to manage files (media manager, ftp, etc.) so file manager was not added into gallery :-( (it is not because I like to not have some delete function, it is the compromise :-( )

Jan

Re: Error. File already exists - missing images - deleting image

Posted: 27 Jul 2009, 02:24
by awebsitedesigner
Hello I understand how it works but I don't see why you can't have an option in the configuration to select to "Delete images permanently" when deleted from Phoca or alternatively "Overwrite existing images when uploaded" or "Prompt the user to override existing imges when uploaded". There is no down side to this, it would make life a lot simpler for the vast majority of users who never use ftp and never use file manager (i.e. all of my clients). Perhaps this is something you can think about for a future version. Its a very good component I think this would make it much easier to use and therefore a better component.

Re: Error. File already exists - missing images - deleting image

Posted: 31 Jul 2009, 03:55
by awebsitedesigner
Thanks for this observation, that is a bit strange. All of my clients log in via the back-end not the front end so its not much good to us but perhaps there is a way to change it so it does the same thing from the back-end? Any ideas?