alternative Download Server

Author Message

Andreas Gellhaus

Thursday 09 October 2003 7:01:41 am

Hello,

I have a little problem and don't now how to start. When want to use two different servers for our download. Our second download location should be the ezpublish server. So, what should I do??? generate an new binary datatype to upload a file to my ezpublish server and copy it to the special download Server or is it possible to do this by workflows.

Who has a good idea, where to start?

Thank’s
Andreas

Jan Borsodi

Thursday 16 October 2003 1:33:02 am

I wouldn't recommend creating a new datatype, to do so you would have to either copy the existing one or create one from scratch. Either way you wouldn't get updates to the file datatype that we make.

Creating a workflow is a good way to handle this, create a new custom workflow event that will check the published object, if any of the attribute is a file datatype get the file and send it to your other server.

A third way is to fix the file datatype to let the binaryfilehandler to the upload work. Currently the binaryfilehandlers only do the download work, not upload.
If this is fixed then you could create your own upload handler. Your handler should call the normal upload handler to store the file locally then send the file to the other server.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:12:44
Script start
Timing: Jan 18 2025 22:12:44
Module start 'layout'
Timing: Jan 18 2025 22:12:44
Module start 'content'
Timing: Jan 18 2025 22:12:45
Module end 'content'
Timing: Jan 18 2025 22:12:45
Script end

Main resources:

Total runtime0.8105 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 587.9141152.6250
Module start 'layout' 0.00640.0026 740.539139.4453
Module start 'content' 0.00900.8003 779.9844521.9688
Module end 'content' 0.80930.0012 1,301.95318.1641
Script end 0.8105  1,310.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3805160.0002
Check MTime0.00130.1603160.0001
Mysql Total
Database connection0.00080.099810.0008
Mysqli_queries0.770995.1114540.0143
Looping result0.00040.0496520.0000
Template Total0.781996.520.3909
Template load0.00210.254320.0010
Template processing0.779896.206320.3899
Template load and register function0.00010.012310.0001
states
state_id_array0.00080.100410.0008
state_identifier_array0.00080.100220.0004
Override
Cache load0.00170.2050140.0001
Sytem overhead
Fetch class attribute can translate value0.00050.067520.0003
Fetch class attribute name0.00080.098530.0003
XML
Image XML parsing0.00060.072120.0003
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00080.0977170.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs