android icon indicating copy to clipboard operation
android copied to clipboard

File type other than JPEG and JPG not uploading via Android app

Open zulfan91 opened this issue 3 years ago • 8 comments

⚠️ 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

  1. Open NC Android app
  2. Configure Auto Upload with Manual Folders
  3. 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.

zulfan91 avatar Aug 10 '22 12:08 zulfan91

Did you give the app the "All files access" permission, or the "media read-only" permission?

AlvaroBrey avatar Aug 10 '22 15:08 AlvaroBrey

Did you give the app the "All files access" permission, or the "media read-only" permission?

Yes, all permissions have been given

zulfan91 avatar Aug 10 '22 15:08 zulfan91

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.

AlvaroBrey avatar Aug 13 '22 12:08 AlvaroBrey

"Upload content from other apps" does not work for me either.

OfficialMuffin avatar Aug 13 '22 12:08 OfficialMuffin

@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 avatar Aug 17 '22 09:08 AlvaroBrey

@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.

OfficialMuffin avatar Aug 18 '22 00:08 OfficialMuffin

Thanks @OfficialMuffin

@zulfan91 can you check if the above workaround works for you?

AlvaroBrey avatar Aug 18 '22 07:08 AlvaroBrey

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!

github-actions[bot] avatar Sep 16 '22 00:09 github-actions[bot]