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 <[email protected]>
To: "[email protected]" <[email protected]>
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@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?
_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud

Reply via email to