Skip to content
Snippets Groups Projects
Commit 154cee29 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Fixed with a workaround a bug when uploading files an missing trailing slash on path.

parent c816e135
No related branches found
No related tags found
No related merge requests found
...@@ -1065,6 +1065,10 @@ class FileManagerAPI(PrivateGETAPI, PrivatePOSTAPI): ...@@ -1065,6 +1065,10 @@ class FileManagerAPI(PrivateGETAPI, PrivatePOSTAPI):
storage = self.get_storage_from_path(path, request) storage = self.get_storage_from_path(path, request)
path = '/'+'/'.join(path.split('/')[2:]) path = '/'+'/'.join(path.split('/')[2:])
# Bug workaround?
if not path.endswith('/'):
path += '/'
# Get the file upload # Get the file upload
file_upload = request.FILES['files'] file_upload = request.FILES['files']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment