-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uploads from content uris #1643
Conversation
} | ||
// and what happens in case of error?; wrong target name for the upload | ||
} catch (Exception e) { | ||
Log_OC.e(TAG, "Error while trying to copy and upload a content schema type file ", e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
schema type content, in this case ;)
All code seems OK, just that log detail ^^ 👍 |
Thanks a lot for your contribution! Alternatively you can add a comment here where you state that this contribution is MIT licensed. Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/ |
1 similar comment
Thanks a lot for your contribution! Alternatively you can add a comment here where you state that this contribution is MIT licensed. Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/ |
Cool, we can ping @jesmrec to test it when he gets less busy ;) |
Thanks a lot for your contribution! Alternatively you can add a comment here where you state that this contribution is MIT licensed. Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/ |
1 similar comment
Thanks a lot for your contribution! Alternatively you can add a comment here where you state that this contribution is MIT licensed. Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/ |
approved 👍 |
} | ||
// and what happens in case of error?; wrong target name for the upload | ||
} catch (Exception e) { | ||
Log_OC.e(TAG, "Error while trying to copy and upload a schema type content file ", e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will end in a silent error; we should show the Toast
that was introduced in version 2.0.0, previous line number 786
Thanks a lot for your contribution! Alternatively you can add a comment here where you state that this contribution is MIT licensed. Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/ |
@jabarros , let's refactor a bit. Code in |
Thanks a lot for your contribution! Alternatively you can add a comment here where you state that this contribution is MIT licensed. Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/ |
1 similar comment
Thanks a lot for your contribution! Alternatively you can add a comment here where you state that this contribution is MIT licensed. Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/ |
return; | ||
} | ||
} | ||
ArrayList<Parcelable> mStreamsToUpload = new ArrayList<Parcelable>() {{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Local variable shouldn't have m
prefix, you, copy-paster :P ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides, we should move this code out of the method, or change it to receive directly an ArrayList<Parcelable>
object instead of an Intent data
. See the caller code; in some situations requestSimpleUpload
is called in a loop, what will result in a several UriUploader
objects created and, more problematic, in several CopyAndUploadContentUrisTask
@jabarros , reviewed. Great job you did it there, let's give it the final shot. |
Thanks a lot for your contribution! Alternatively you can add a comment here where you state that this contribution is MIT licensed. Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/ |
1 similar comment
Thanks a lot for your contribution! Alternatively you can add a comment here where you state that this contribution is MIT licensed. Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/ |
Thanks a lot for your contribution! Alternatively you can add a comment here where you state that this contribution is MIT licensed. Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/ |
Approved (again) 👍 |
Seen last changes by @jabarros . 👍 |
… as content uri scheme
…content uri file appears, or data file is not valid
…named UriUloadResult var
d8004af
to
7225b9f
Compare
Thanks a lot for your contribution! Alternatively you can add a comment here where you state that this contribution is MIT licensed. Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/ |
No description provided.