You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No permissions to create file in Amazon S3 SFTP server using S3 file system? #1215
@kikaragyozov Did you manage to work around this issue?
Hello. Yes, I'm simply not using the method that's opening the file with an EXCLUSIVE flag, i.e SftpClient.Create(string). As I initially stated, I've got no problems using UploadAsync or UploadFile to get the job done.
Having done more research on this, I don't think it's the EXCLUSIVE flag. I believe that S3 doesn't like having the READ and WRITE flag set at the same time.
After #1680 SftpClient.Create(string) will not send EXCLUSIVE (it had no reason to). The only difference now to UploadFile is that Create opens with ReadWrite and UploadFile is just Write. So it remains to be seen whether the problem still exists
Activity
kikaragyozov commentedon Oct 16, 2023
I think after investigating, it's possible Amazon's servers do not support the
EXCLUSIVEflag, which is weird.mitchej7 commentedon Feb 1, 2024
@kikaragyozov Did you manage to work around this issue?
kikaragyozov commentedon Feb 2, 2024
Hello. Yes, I'm simply not using the method that's opening the file with an
EXCLUSIVEflag, i.eSftpClient.Create(string). As I initially stated, I've got no problems usingUploadAsyncorUploadFileto get the job done.mitchej7 commentedon Feb 12, 2024
Having done more research on this, I don't think it's the EXCLUSIVE flag. I believe that S3 doesn't like having the READ and WRITE flag set at the same time.
Rob-Hague commentedon Aug 2, 2025
After #1680 SftpClient.Create(string) will not send EXCLUSIVE (it had no reason to). The only difference now to UploadFile is that Create opens with ReadWrite and UploadFile is just Write. So it remains to be seen whether the problem still exists