Share » Forums » Extensions » Enhancedbinaryfile

Enhancedbinaryfile

Enhancedbinaryfile

Tuesday 08 June 2010 6:42:44 am - 3 replies

Modified on Tuesday 08 June 2010 6:47:08 am by Albert Balagueró

Author Message

Steven E. Bailey

Tuesday 08 June 2010 8:52:45 am

Check your <VarDir>/storage/<DownloadPath> directory to see if those files are there - they should be a hash and therefore unique even if it's the same file/same name. I have a test directory with multiple versions of the same file named a different hash.

<VarDir> is under site.ini [FileSetting]

<DownloadPath> is in the extension module.ini

This is assuming that you have the latest version (1.1) of the extension and not the version for eZPublish 3.x. If you have the 3.x version then... sorry... I haven't looked at it in years and the extension has been extensively rewritten since then.

The other thing that may be going on is if you have MaxFiles then anything more than MaxFiles will be deleted - if you have a busy site and that number is set low this may occur before you have a chance to look at it. Read the readme.txt and the comments in module.ini for more information.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Albert Balagueró

Tuesday 08 June 2010 9:29:15 am

Thank you for your fast response Steven.

The version I got is the release 3 of enhancedbinaryfile. I'm running under ezPublish 4.2.
I checked all the things you have told but I didn't find the solution.

<VarDir> under site.ini [FileSetting] it's ok and <DownloadPath> is ok too. In fact, the files are stored ok. The problem is that the files are replaced by others (the new ones). But EUREKA!, i think i found the problem, I saw that there are duplicates of image with diferent hash and, VOILÀ!... I counted the number of files and there are 25 files!!! Looking the module.ini you told me, I saw:

[RemoveFiles]MaxFiles=25

Now I'm understanding which is the problem!!! I'm an idiot!!! Maybe some user have sent the form twice and the files had been uploaded twice too, but until 25. The older ones have been deleted!!!!!

I'm gonna change this number and I think that this will solve the problem. It is logical, when the number of files reaches 25, older ones are removed... I'm really stupid... buff...

Thank you very much for your help Steven.

See you soon online!

Albert Balagueró

Tuesday 08 June 2010 10:05:56 am

Solved,
the error was mine, in module.ini of the extension:

[RemoveFiles]MaxFiles=25

I've changed the number for a bigger one and all its ok, all the files are where it must be, any file removed or deleted.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu