Forums / Developer / Right for upload ?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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 Exponential 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 ...