android
android copied to clipboard
File type other than JPEG and JPG not uploading via Android app
⚠️ Before posting ⚠️
- [X] This is a bug, not a question or an enhancement.
- [X] I've searched for similar issues and didn't find a duplicate.
- [X] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [X] I agree to follow Nextcloud's Code of Conduct.
Steps to reproduce
- Open NC Android app
- Configure Auto Upload with Manual Folders
- Save and Enable Auto Upload
Expected behaviour
I expected all file types in the Folder to be uploaded to the folder configured in the App
Actual behaviour
Auto Upload feature only uploads JPG and JPEG files and throws Error 406 "Not Acceptable" for all other files types such a PDF or MP4, etc
Android version
11
Device brand and model
OnePlus 6T
Stock or custom OS?
Stock
Nextcloud android app version
3.21.0
Nextcloud server version
24.0.3
Using a reverse proxy?
I don't know
Android logs
No response
Server error logs
No response
Additional information
I have tried deleting and reinstalling the app several times with the same error. Uploads work fine with Desktop App as well as over the WEB.
Did you give the app the "All files access" permission, or the "media read-only" permission?
Did you give the app the "All files access" permission, or the "media read-only" permission?
Yes, all permissions have been given
Will need to investigate this. As a workaround you can use "Upload content from other apps" and choose the files through there; that should work.
"Upload content from other apps" does not work for me either.
@OfficialMuffin @zulfan91 Can either of you try to upload a PDF or something else, and then get a logcat from the Android device so we can see if there's any errors? Instructions here: https://github.com/nextcloud/android#getting-debug-info-via-logcat-mag
Feel free to search and replace the server URL, username and file names in the output for privacy, if needed.
@AlvaroBrey Strangely; I cleared all the permissions for my device and allowed the file permission again and it seems to work now. All file types can now be uploaded successfully with no error.
Not too sure about the JPEG issues though as I haven't used auto upload before.
Thanks @OfficialMuffin
@zulfan91 can you check if the above workaround works for you?
This bug report 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!