mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Fix failed uploads when display name of file brough from external apps includes separator or path-separator characters
This commit is contained in:
parent
387374bed2
commit
703366c459
1 changed files with 2 additions and 0 deletions
|
@ -710,6 +710,8 @@ OnSslUntrustedCertListener, OnEnforceableRefreshListener {
|
|||
cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));
|
||||
Log.i(TAG, "Display Name: " + displayName + "; mimeType: " + mimeType);
|
||||
|
||||
displayName.replace(File.separatorChar, '_');
|
||||
displayName.replace(File.pathSeparatorChar, '_');
|
||||
remotepath += displayName + DisplayUtils.getComposedFileExtension(filepath);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue