Try the fastest and simplest way to install ONLYOFFICE

Export Email Attachment to Shared folder

Integration questions/issues

Export Email Attachment to Shared folder

Postby shiruken » Sun Jul 31, 2016 1:53 am

Hello!

When I execute the following lines, it puts the file in @MyDocs' root, as opposed to the subfolder that has the security permissions to read-only for everyone.

Am I doing something wrong, or is the API not allowing me to do this?

Thanks!

Code: Select all
$file['id_attachment'] = $attach->fileId;
$file['id_folder'] = '10';

$fileId = Unirest\Request::put($api_url.'mail/messages/attachment/export', $headers, $file)->body->response;


In other related news: Does anyone know where I can find documentation for FileShareParamss?

Thanks again!
shiruken
 
Posts: 3
Joined: Tue May 03, 2016 1:58 pm

Re: Export Email Attachment to Shared folder

Postby Eugenie » Tue Aug 09, 2016 1:13 pm

Hello,

Actually you can save attachments from e-mails to any folder if you have access rights to these folders even from the interface. If you cannot save your attachment to "Shared with me" folder that means that you do not have enough rights.
Eugenie
 
Posts: 134
Joined: Mon Aug 25, 2014 10:11 am


Return to API

Who is online

Users browsing this forum: No registered users and 1 guest