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

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 31 2025 03:44:14
Script start
Timing: Jan 31 2025 03:44:14
Module start 'layout'
Timing: Jan 31 2025 03:44:14
Module start 'content'
Timing: Jan 31 2025 03:44:14
Module end 'content'
Timing: Jan 31 2025 03:44:14
Script end

Main resources:

Total runtime0.0242 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.2656151.2266
Module start 'layout' 0.00570.0041 739.4922220.7188
Module start 'content' 0.00980.0130 960.2109997.7266
Module end 'content' 0.02280.0014 1,957.937529.9922
Script end 0.0242  1,987.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002711.2861140.0002
Check MTime0.00114.4011140.0001
Mysql Total
Database connection0.00062.340010.0006
Mysqli_queries0.002811.431030.0009
Looping result0.00000.058210.0000
Template Total0.00093.810.0009
Template load0.00072.886110.0007
Template processing0.00020.872310.0002
Override
Cache load0.00052.017710.0005
General
dbfile0.00125.026080.0002
String conversion0.00000.040440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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