owncloud / ios-library

MIT License
77 stars 90 forks source link

Upload File 401 #90

Closed marinofaggiana closed 8 years ago

marinofaggiana commented 9 years ago

boys is a bug or .... in the example the library if you do an upload (No session) :

_uploadOperation = [[AppDelegate sharedOCCommunication] uploadFile:imagePath toDestiny:serverUrl onCommunication:[AppDelegate sharedOCCommunication] progressUpload:^(NSUInteger bytesWrite, long long totalBytesWrite, long long totalExpectedBytesWrite)

without first nothing (no download, no folder read etc.) always returns 401 (permission denied). I noticed this in a very random

javiergonzper commented 9 years ago

Thanks for report @marinotws I will check it :wink:

marinofaggiana commented 9 years ago

thanks ... I hope you manage to fix it soon ...

javiergonzper commented 9 years ago

Debugging the code looks like everything should works... I will check it with wireshark to check the headers that we send on the request

javiergonzper commented 9 years ago

@marinotws it only fails over https if you connect to a http server the upload works. Could be a server but but I can not reproduce it over CURL

marinofaggiana commented 9 years ago

yes, its https ... Could be a server but but I can not reproduce it over CURL ?? (I do not understand)

javiergonzper commented 9 years ago

It is a tool: https://es.wikipedia.org/wiki/CURL

nasli commented 8 years ago

@marinotws Still an issue? Try to check it with the latest update. If needed, please reopen