Uploading files in extension

Author Message

Eirik Alfstad Johansen

Tuesday 27 January 2004 2:38:06 am

Hi,

I'm having trouble uploading files in one of my module extensions. The problem is that the post variable which should contain the uploaded file does not exist (print_r($_POST)). I've tested the upload script on the same domain and file, but outside the ezp code, and then it works, so I belive it's something ezp specific.

Any setting or something similar that applies to file uploads?

Thanks in advance !

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Björn Dieding@xrow.de

Wednesday 28 January 2004 4:51:09 am

<form enctype="multipart/form-data" method="post"

did add the multipart thing to your form?

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Eirik Alfstad Johansen

Wednesday 28 January 2004 6:26:17 am

Hi Björn,

Yes, I did.

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

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 19:38:20
Script start
Timing: Jan 18 2025 19:38:20
Module start 'layout'
Timing: Jan 18 2025 19:38:20
Module start 'content'
Timing: Jan 18 2025 19:38:21
Module end 'content'
Timing: Jan 18 2025 19:38:21
Script end

Main resources:

Total runtime0.6077 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.9141152.6250
Module start 'layout' 0.00690.0033 740.539139.4453
Module start 'content' 0.01020.5961 779.9844536.8516
Module end 'content' 0.60630.0014 1,316.835912.1641
Script end 0.6076  1,329.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5370160.0002
Check MTime0.00130.2152160.0001
Mysql Total
Database connection0.00080.138910.0008
Mysqli_queries0.555991.4893570.0098
Looping result0.00060.1040550.0000
Template Total0.576794.920.2883
Template load0.00210.345220.0010
Template processing0.574694.556020.2873
Template load and register function0.00010.017110.0001
states
state_id_array0.00080.128510.0008
state_identifier_array0.00110.174020.0005
Override
Cache load0.00170.2823200.0001
Sytem overhead
Fetch class attribute can translate value0.00050.090020.0003
Fetch class attribute name0.00130.219450.0003
XML
Image XML parsing0.00130.214420.0007
class_abstraction
Instantiating content class attribute0.00000.002260.0000
General
dbfile0.00130.2127220.0001
String conversion0.00000.002140.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 5

Time used to render debug report: 0.0001 secs