Hello, 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 12.33.20.355 </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: [email protected] Data: 21/04/2015 11.19 A: "[email protected]"<[email protected]>, "List for Developers of ownCloud"<[email protected]> 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, [email protected] wrote: Hello, 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 [email protected] http://mailman.owncloud.org/mailman/listinfo/devel
_______________________________________________ Devel mailing list [email protected] http://mailman.owncloud.org/mailman/listinfo/devel
