mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue when uploading a CSV throwing an error in the Desktop mode. Fixes #7150
This commit is contained in:
committed by
Akshay Joshi
parent
4a195e7ef6
commit
444a364a8d
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user