element-hq / element-meta

Shared/meta documentation and project artefacts for Element clients
65 stars 11 forks source link

File upload: Unable to display filename. #2459

Open YamatoRyou opened 1 month ago

YamatoRyou commented 1 month ago

Steps to reproduce

  1. Ensure that the tester has full control over the server in addition to having an account on the server to reproduce the problem;
  2. Enter the room (encrypted/unencrypted rooms are acceptable);
  3. Upload any file;
  4. Request the server's API (/_synapse/admin/v1/users/**********/media) with appropriate parameters to view the file last uploaded by the user who uploaded the file.

Outcome

What did you expect?

Files uploaded to non-encrypted rooms should have their file names displayed to administrators.

What happened instead?

This problem may cause a little difficulty for administrator auditing. I use Synapse-Admin to view files uploaded by users. Files uploaded through Element X cannot display the file name. I guess the reason is that the client does not include the filename parameter when requesting /_matrix/media/v3/upload. Element (traditional) clients on each platform do not have this problem.

Your phone model

OnePlus 9RT

Operating system version

Lineage OS 21 (Android 14)

Application version and app store

Element X 0.4.12

Homeserver

Synapse 1.107.0

Will you send logs?

No

Are you willing to provide a PR?

No

bmarty commented 6 days ago

Moving the issue to Element Meta has it requires some change on the SDK.