This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » General » Import files with download counts

Import files with download counts

Import files with download counts

Thursday 10 April 2014 10:51:01 am - 1 reply

I have a very old legacy site running 4.3. That site contains several hundred binary files that I would like to have available in a new community edition site. A lot of trial and error has shown me that export/import/packages is very much NOT the way to go and that things are going to have to be done using scripting and the CLI.

I'm not having any problems getting the files created and published in the new site, but I haven't yet been able to carry over the existing download counts for the files.

Can anybody offer any guidance on this? I'd love to insert the download count when I create and publish the new objects, or do it in a sub-process before completing the create and publish.

My thanks in advance,


Wednesday 04 June 2014 11:45:05 am

download_count is stored in the ezbinaryfile table - are you looking for a class method for getting/setting? Could you just use SQL to get the count?


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

36 542 Users on board!

Forums menu

Proudly Developed with from