Hi, I'd recommend not touching the "data" folder directly but doing the move over WebDAV. Unfortunately there is no "phpocclient" project yet to make this easier, but in case you'd be open to rewrite your script in Python you can use https://github.com/owncloud/pyocclient.
Because if you move a file directly in "data", the file cache (aka index in the database, oc_filecache) will not be up to date and the folder needs to be rescanned (might happen automatically). But then the file that was moved receives a different file id which is not the same as the original file, so the client might not recognize the file as being the same. I'm not sure whether it's directly related to your reupload problem, but it is likely that it does. Cheers, Vincent On 27.05.2015 11:21, Piers wrote: > On 27/05/15 19:19, Vincent Petry wrote: >> Hello, >> >> Can you explain how your script works ? >> >> Does it move the file directly on the server in the "data" folder or >> does it use WebDAV to do the move ? >> >> > > > Thanks for the quick response. > > The files are moved directly (by another PHP app) and WebDAV is not used. > > Cheers > > P > _______________________________________________ > User mailing list > [email protected] > http://mailman.owncloud.org/mailman/listinfo/user
signature.asc
Description: OpenPGP digital signature
_______________________________________________ User mailing list [email protected] http://mailman.owncloud.org/mailman/listinfo/user
