[owncloud-devel] R: Re: API to set MTIME of files

ziotibia1 at libero.it ziotibia1 at libero.it
Tue Apr 21 09:29:25 GMT 2015

thanks for you reply.

I made a test using PROPATCH and sending:

<?xml version="1.0" encoding="utf-8" ?>
<D:propertyupdate xmlns:D="DAV:"><D:set><D:prop><getlastmodified xmlns="DAV:">Thu, 2 Apr 2009 06:58:27GMT</getlastmodified></D:prop></D:set>2015-03-27 </D:propertyupdate>

But owncloud (latest version) reply:

<?xml version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns"><d:response><d:href>/owncloud/remote.php/webdav//ImgItems/img.40.jpg</d:href><d:propstat><d:prop><d:getlastmodified/></d:prop><d:status>HTTP/1.1 403 Forbidden</d:status></d:propstat></d:response></d:multistatus>

The call is different?

----Messaggio originale----

Da: pvince81 at owncloud.com

Data: 21/04/2015 11.19

A: "ziotibia1 at libero.it"<ziotibia1 at libero.it>, "List for Developers of ownCloud"<devel at owncloud.org>

Ogg: Re: [owncloud-devel] API to set MTIME of files

    Yes, you can do a PROPPATCH and send the "getlastmodified" property.


    On 21.04.2015 11:17,
      ziotibia1 at libero.it wrote:

there are a call in owcloud api to set mtime of file when the access is in webdav mode?

I notice that Owncloud client set mtime during the PUT and do this using X-OC-Mtime on headers.

There are other ways?



Devel mailing list
Devel at owncloud.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.owncloud.org/pipermail/devel/attachments/20150421/cec27fcc/attachment.html>

More information about the Devel mailing list