Forums / Extensions / Enhancedbinaryfile

Enhancedbinaryfile

Author Message

Albert Balagueró

Tuesday 08 June 2010 6:42:44 am

Hello,

have somebody problems with enhancedbinaryfile?
I use it in a form information collection, the file is uploaded ok and I receive a mail with the link of the file.

The problem is that when more forms are summited, I lost the links of the files uploaded, I think they are deleted and renamed with the new ones.

When I click the link in the admin area, in the information collection, I get no file, the link is active, but no image.

Somebody knows where can be the problem?

Thank you in advance.

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.

eZ debug

Timing: Jan 17 2025 23:51:06
Script start
Timing: Jan 17 2025 23:51:06
Module start 'content'
Timing: Jan 17 2025 23:51:07
Module end 'content'
Timing: Jan 17 2025 23:51:07
Script end

Main resources:

Total runtime0.7289 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 590.7891180.8438
Module start 'content' 0.00630.6084 771.6328564.6250
Module end 'content' 0.61470.1141 1,336.2578336.7578
Script end 0.7288  1,673.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5563210.0002
Check MTime0.00160.2129210.0001
Mysql Total
Database connection0.00070.098910.0007
Mysqli_queries0.663691.04321970.0034
Looping result0.00180.24541950.0000
Template Total0.698695.920.3493
Template load0.00190.264520.0010
Template processing0.696795.584520.3483
Template load and register function0.00020.033110.0002
states
state_id_array0.00100.134210.0010
state_identifier_array0.00100.139820.0005
Override
Cache load0.00170.2283360.0000
Sytem overhead
Fetch class attribute can translate value0.00140.197130.0005
Fetch class attribute name0.00100.143650.0002
XML
Image XML parsing0.00080.113130.0003
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00200.2789280.0001
String conversion0.00000.001130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs