[opencms-dev] Webusers uploading files

Ørnulf Risnes ornulf.risnes at nsd.uib.no
Thu Feb 12 17:25:01 CET 2004


You mean to have something like this in the upload-template:

...
//Log in non-web-user
loginUser(specialUser)

//Perform the creation of the resource
createResource()

//Log the webuser back in so he didn't even notice he was logged out
loginWebuser(oldUser)
...

?

Best regards,
Ørnulf Risnes
Nesstar Ltd.





Joachim Arrasz wrote:
> Hi,
> 
> 
>>Does anyone know if it is possible to for webusers to upload files to
>>opencms, i.e. use the createResource()-methods in the CmsObject-class?
>>
>>I haven't been able to figure out if you need to be a regular user to
>>use these methods.
> 
> 
> you can create a special user for this in your backend and then use this
> special user in your java code ...that`s a little "magic" but it works
> fine.
> Kind Regards
> 
> Joachim Arrasz
> 
> Synyx oHG
> 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list