Skip to content
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

Uploading picture fails #3692

Closed
themagicm opened this issue Mar 3, 2019 · 6 comments
Closed

Uploading picture fails #3692

themagicm opened this issue Mar 3, 2019 · 6 comments

Comments

@themagicm
Copy link

Actual behaviour

When selecting a picture to upload from the photo gallery on my android phone, selecting Nextcloud (sign in of course) then selecting Upload in the client, it fails. If I view the failed picture in nextcloud and retry, it will work.

Expected behaviour

  • Tell us what should happen

Steps to reproduce

  1. Go to photo gallery on your Android device
  2. Select photo
  3. Select share
  4. Select Nextcloud client in the applications list
  5. Sign into nextcloud with the app
  6. Select upload
  7. Hit home and go to main screen
  8. Wait for it to fail
  9. Select failed upload notification and you get sent back to nextcloud client. Retry. Works.

to make it work all the time:

  1. Open Nextcloud client app
  2. Click + to upload
  3. Find picture
  4. Upload.
  5. No issues this way.

Environment data

Android version:
8.0.0

Device model:
SM-N950U (note 8)

Stock or customized system:
stock

Nextcloud app version:
3.5.0

Nextcloud server version:
15.0.2

Logs

Web server error log

Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Insert your Nextcloud log here

NOTE: Be super sure to remove sensitive data like passwords, note that everybody can look here! You can use the Issue Template application to prefill some of the required information: https://apps.nextcloud.com/apps/issuetemplate

@themagicm themagicm added the bug label Mar 3, 2019
@nextcloud-android-bot
Copy link
Collaborator

GitMate.io thinks possibly related issues are #3631 (upload fails), #710 (Image upload fails after removing the image one time (UNKNOWN_ERROR)), #581 (Uploading a picture twice fails), #2414 (Improved Upload Status), and #325 (Instant picture upload fails on permission error).

@soofstad
Copy link

soofstad commented Mar 4, 2019

Also started to see this issue with AutoUploads just after I upgraded the server to 15.0.5 from 15.0.3.
On the android app (3.5.0) I get "Permission error", and in the notification it says "You are not permitted to upload to this folder".
Some server logs;

nextcloud_APP | 172.22.0.1 - stig [04/Mar/2019:17:07:29 +0100] "GET /index.php/204 HTTP/1.1" 204 1268 "-" "Mozilla/5.0 (Android) ownCloud-android/3.5.0"
nextcloud_APP | 172.22.0.1 - stig [04/Mar/2019:17:07:29 +0100] "GET /ocs/v2.php/apps/files_sharing/api/v1/shares?path=%2F&reshares=true&subfiles=true HTTP/1.1" 200 747 "-" "Mozilla/5.0 (Android) ownCloud-android/3.5.0"
nextcloud_APP | 172.22.0.1 - stig [04/Mar/2019:17:07:29 +0100] "MKCOL /remote.php/dav/uploads/stig/402382442 HTTP/1.1" 405 895 "-" "Mozilla/5.0 (Android) ownCloud-android/3.5.0"
nextcloud_APP | 172.22.0.1 - stig [04/Mar/2019:17:07:29 +0100] "PROPFIND /remote.php/dav/uploads/stig/402382442 HTTP/1.1" 207 2724 "-" "Mozilla/5.0 (Android) ownCloud-android/3.5.0"
nextcloud_APP | 172.22.0.1 - stig [04/Mar/2019:17:07:39 +0100] "PROPFIND /remote.php/dav/files/stig/ HTTP/1.1" 207 1100 "-" "Mozilla/5.0 (Linux) mirall/2.5.1git (Nextcloud)"
nextcloud_APP | 172.22.0.1 - - [04/Mar/2019:17:07:42 +0100] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 700 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.120 Safari/537.36 Vivaldi/2.3.1440.57"
nextcloud_APP | 172.22.0.1 - stig [04/Mar/2019:17:07:57 +0100] "PROPFIND /remote.php/dav/files/stig/ HTTP/1.1" 207 1080 "-" "Mozilla/5.0 (Linux) mirall/2.5.1git (Nextcloud)"

@tobiasKaminsky
Copy link
Member

5. Sign into nextcloud with the app

What do you mean with this? After sharing a file to NC app there is no need to sign in? You should directly see the file list?

All it all, I tested it with google photos app and it worked fine.
What error message do you see in upload queue?

@soofstad this seems to be a different problem, can you open up a new issue for this?

@themagicm
Copy link
Author

themagicm commented Mar 6, 2019 via email

@tobiasKaminsky
Copy link
Member

Next Cloud client asks to "Verify Identity" which is what I mean by log in.

can you show a screenshot of this?

@stale
Copy link

stale bot commented May 9, 2019

This request did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants