diff --git a/docs/en_US/release_notes_6_5.rst b/docs/en_US/release_notes_6_5.rst index 4f3650387..fda1187cd 100644 --- a/docs/en_US/release_notes_6_5.rst +++ b/docs/en_US/release_notes_6_5.rst @@ -35,4 +35,5 @@ Bug fixes | `Issue #7142 `_ - Fixed an issue where a warning message was shown after database creation/modification. | `Issue #7145 `_ - Ensure that owner should be ignored while comparing extensions. | `Issue #7146 `_ - Fixed event trigger comparing issue in Schema Diff tool. +| `Issue #7150 `_ - Fixed an issue when uploading a CSV throwing an error in the Desktop mode. | `Issue #7151 `_ - Fixed value error in the restore dialog. diff --git a/web/pgadmin/misc/file_manager/__init__.py b/web/pgadmin/misc/file_manager/__init__.py index db5f0b6d4..d132e46eb 100644 --- a/web/pgadmin/misc/file_manager/__init__.py +++ b/web/pgadmin/misc/file_manager/__init__.py @@ -984,7 +984,8 @@ class Filemanager(object): try: # Check if the new file is inside the users directory - pathlib.Path(new_name).relative_to(the_dir) + if config.SERVER_MODE: + pathlib.Path(new_name).relative_to(the_dir) except ValueError: return self.ERROR_NOT_ALLOWED