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

Attach/Send files to messages does not work for fresh users #4053

Open
woolfg opened this issue Aug 7, 2024 · 8 comments · May be fixed by #4759
Open

Attach/Send files to messages does not work for fresh users #4053

woolfg opened this issue Aug 7, 2024 · 8 comments · May be fixed by #4759
Assignees
Labels
1. to develop Accepted and waiting to be taken care of (should be only set by nextcloud employees) bug Something isn't working
Milestone

Comments

@woolfg
Copy link

woolfg commented Aug 7, 2024

Steps to reproduce

  1. Create a new user
  2. Use this user in Android Talk
  3. Try to send a file (e.g image) in a Message

To fix it, there are two options. After those steps it is possible to send images from Android as well.

  • Receive a message including an image
  • Login to web or iOS and send a message/file in Talk there

Expected behaviour

The file is sent.

Actual behaviour

  • File/Message is not sent
  • native Android notification "Failure: Failed to upload: imagename.jpg" is shown

image

Device brand and model

Moto g84 5G

Android version

14

Nextcloud Talk app version

19.0.1

Nextcloud server version

29.0.4

Talk version

19.0.7

Custom Signaling server configured

None

Custom TURN server configured

None

Custom STUN server configured

None

Android logs

No response

Server log

No response

Additional information

Is reproducable on different Android phones.

@woolfg woolfg added 0. Needs triage bug Something isn't working labels Aug 7, 2024
@mahibi
Copy link
Collaborator

mahibi commented Sep 2, 2024

iirc this might happen due to the attachments folder on server that is not yet created.
Do you know if the same scenario also fails on iOS?

@PH03N1X999
Copy link

yes this happened to me also and the fix options i did was the same as @woolfg mentioned

@mahibi
Copy link
Collaborator

mahibi commented Jan 8, 2025

@Ivansss @SystemKeeper is it the same behavior on iOS?

@SystemKeeper
Copy link

We check the status code for the missing attachment folder and create it in that case:

https://github.com/nextcloud/talk-ios/blob/52a6f3de3c6859f2c8fc7d2cf5cda3f0da63d896/NextcloudTalk/NCAPIController.m#L1930-L1952

https://github.com/nextcloud/talk-ios/blob/52a6f3de3c6859f2c8fc7d2cf5cda3f0da63d896/ShareExtension/ShareConfirmationViewController.swift#L660-L668

@Ivansss

This comment has been minimized.

@woolfg
Copy link
Author

woolfg commented Jan 8, 2025

is it the same behavior on iOS?

for me in worked on web and iOS as this was my workaround "Login to web or iOS and send a message/file in Talk there" to fix the problem.

@Ivansss
Copy link
Member

Ivansss commented Jan 8, 2025

The issue reported in my previous comment #4053 (comment) was unrelated with this issue.
This issue might be related with the attachment folder as @SystemKeeper reported here:
#4053 (comment)

@mahibi
Copy link
Collaborator

mahibi commented Jan 8, 2025

TODO:

@mahibi mahibi added the 1. to develop Accepted and waiting to be taken care of (should be only set by nextcloud employees) label Jan 8, 2025
@mahibi mahibi added this to the 21.0.0 milestone Jan 8, 2025
@sowjanyakch sowjanyakch linked a pull request Feb 24, 2025 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of (should be only set by nextcloud employees) bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants