astubenbord / paperless-mobile

An (almost) fully fledged mobile paperless client.
GNU General Public License v3.0
735 stars 37 forks source link

[Bug]: Download bug: File name contains path information #458

Open Krabtus opened 3 weeks ago

Krabtus commented 3 weeks ago

What happened?

When downloading a document in the app, the full file path (including directory structure) is displayed in the name of the downloaded document instead of just using the actual document name.

Steps to reproduce

  1. Open the Paperless Mobile app.
  2. Select a document from the document list.
  3. Select the "Download Original" option.
  4. Check the file name of the downloaded file.

Log output from the app

No response

Screenshots

No response

Paperless-ng*x Version

2.13.3

Paperless-Mobile Version

3.2.1

Device

Samsung Galaxy S10 Plus

Operating System Version

Android 12

Device Locale

Deutsch

Selected Locale

German

Additional Context

Expected behavior The downloaded file should only contain the document name, without any path information (e.g. invoice_2023.pdf).

Actual behavior The downloaded file contains the entire path as the file name (e.g. documents invoices invoice_2023.pdf), which results in an unusual file name.