Forums / Developer / eZ Crew: How does the image uploading work?

eZ Crew: How does the image uploading work?

Author Message

Jerry Jalava

Thursday 31 July 2003 4:17:10 am

I would like to know how does the image upload work in ez... I know it uses few files (ie. ezimage.php,ezimagevariations.php,ezimagetype.php,image.php...)

But how does it know when image is uploaded ie. through class?

I tried to examine the code all around eZ, but couldn't find where the ezimage files get the command to process the image that I'm uploading from ie. my class witch has image in it...

So, where do I activate the image uploading in my own module?

I need to know, because I need image uploading to one of my modules (uses own database, not ezcontent one), and I would like to use the eZ's way to save the image to server...

Thanks,
Jerry

Jerry Jalava

Friday 01 August 2003 6:03:10 am

I really need to know this... This is the key element that i still missing from my module... I can't finish my project without knowing this... :(

I know that the real uploading happens in ezhttpfile.php -file, but if I would like to save something with it to the server, I need to know the Mimetype and mimecategory, which I get from the ezimage -files...

So, how can I tell ezimage that I wan't this file to be saved...
I have tried all kind of stuff, but without any progress.

Please help...

Thanks,
Jerry

eZ debug

Timing: Jan 18 2025 20:56:29
Script start
Timing: Jan 18 2025 20:56:29
Module start 'content'
Timing: Jan 18 2025 20:56:29
Module end 'content'
Timing: Jan 18 2025 20:56:30
Script end

Main resources:

Total runtime0.2163 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 587.8438180.8125
Module start 'content' 0.00740.0179 768.656393.8203
Module end 'content' 0.02530.1909 862.4766522.6250
Script end 0.2163  1,385.1016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00351.5950200.0002
Check MTime0.00140.6244200.0001
Mysql Total
Database connection0.00090.394310.0009
Mysqli_queries0.130960.51881410.0009
Looping result0.00140.65021390.0000
Template Total0.190488.010.1904
Template load0.00100.445110.0010
Template processing0.189487.568910.1894
Override
Cache load0.00070.301310.0007
Sytem overhead
Fetch class attribute can translate value0.00090.437310.0009
XML
Image XML parsing0.00040.162710.0004
General
dbfile0.033115.2866200.0017
String conversion0.00000.003630.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs