mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-09 08:56:22 +00:00
Merge pull request #73 from owncloud/fix_shared_by_link_for_server_without_uploads
Fix shared by link for server without public uploads
This commit is contained in:
commit
5d1f069003
@ -110,7 +110,9 @@ public class CreateRemoteShareOperation extends RemoteOperation {
|
|||||||
post.addParameter(PARAM_PATH, mRemoteFilePath);
|
post.addParameter(PARAM_PATH, mRemoteFilePath);
|
||||||
post.addParameter(PARAM_SHARE_TYPE, Integer.toString(mShareType.getValue()));
|
post.addParameter(PARAM_SHARE_TYPE, Integer.toString(mShareType.getValue()));
|
||||||
post.addParameter(PARAM_SHARE_WITH, mShareWith);
|
post.addParameter(PARAM_SHARE_WITH, mShareWith);
|
||||||
|
if (mPublicUpload) {
|
||||||
post.addParameter(PARAM_PUBLIC_UPLOAD, Boolean.toString(mPublicUpload));
|
post.addParameter(PARAM_PUBLIC_UPLOAD, Boolean.toString(mPublicUpload));
|
||||||
|
}
|
||||||
if (mPassword != null && mPassword.length() > 0) {
|
if (mPassword != null && mPassword.length() > 0) {
|
||||||
post.addParameter(PARAM_PASSWORD, mPassword);
|
post.addParameter(PARAM_PASSWORD, mPassword);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user