Right for upload ?

Author Message

Fabien Mas

Monday 02 April 2007 1:54:58 am

I would like to add files from the media library with a browse button in a front page
I have created my own extension, which is not totally made in an ezpublish way.
so I have to create my file object manually

I have found this, it only works when I am logged as administrator
Which right must I give to my others users ?

 include_once( 'kernel/classes/ezcontentupload.php' );
 $upload = new eZContentUpload();
 $uploadedOk = $upload->handleUpload( $result, 'fileName', false, 'test' );

thx, Fabien :)

Fabien Mas

Wednesday 11 April 2007 12:59:06 am

I've found it :
Content >> create >> and my node where I want to upload ...

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

Main resources:

Total runtime0.0269 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.0156151.1953
Module start 'layout' 0.00570.0043 739.2109220.6563
Module start 'content' 0.01000.0154 959.8672997.7891
Module end 'content' 0.02540.0015 1,957.656329.9922
Script end 0.0269  1,987.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003011.1109140.0002
Check MTime0.00124.4084140.0001
Mysql Total
Database connection0.00113.993910.0011
Mysqli_queries0.00197.218930.0006
Looping result0.00000.048710.0000
Template Total0.00114.010.0011
Template load0.00083.031110.0008
Template processing0.00020.924710.0002
Override
Cache load0.00051.958410.0005
General
dbfile0.00165.915180.0002
String conversion0.00000.026640.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