[Owncloud] cannot create file in smb remote share
Vieri
rentorbuy at yahoo.com
Mon Aug 19 10:03:52 UTC 2013
I noticed that if I changed the file:
apps/files/ajax/newfile.php
//}elseif(\OC\Files\Filesystem::touch($dir . '/' . $filename)) {
}elseif(\OC\Files\Filesystem::file_put_contents($dir . '/' . $filename, '')) {
then OC can actually create a new file on the remote SMB share.
(it still gives an error at first but if I refresh the dir then I can see the newly created file and edit it)
so the call to 'touch' doesn't seem to work right for SMB shares (or at least mine).
----- Original Message -----
From: Vieri <rentorbuy at yahoo.com>
To: "owncloud at kde.org" <owncloud at kde.org>
Cc:
Sent: Monday, August 19, 2013 10:45 AM
Subject: [Owncloud] cannot create file in smb remote share
Hi,
I'm trying to create a file in a remote share mounted as SMB. User has read/write access to that share.
In fact, user can successfully create new folders with OC in that remote share. However, user can't create new files via OC (of course, user can create new files directly via SMB clients).
I have the following messages in the log:
{"app":"PHP","message":"filetype(): Lstat failed for smb:\/\/username:userpassword at smbserver\/users\/username\/testme at \/var\/www\/localhost\/htdocs\/owncloud\/apps\/files_external\/lib\/streamwrapper.php#33","level":2,"time":1376901367}
{"app":"PHP","message":"NT_STATUS_OBJECT_NAME_NOT_FOUND opening remote file params(-d 0 '\/\/smbserver\/users' -c 'get \"username\\testme\" \"\/tmp\/smb.down.PA5qF2\"') at \/var\/www\/localhost\/htdocs\/owncloud\/3rdparty\/smb4php\/smb.php#187","level":2,"time":1376901367}
Any ideas?
More information about the Owncloud
mailing list