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
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1065,6 +1065,10 @@ class FileManagerAPI(PrivateGETAPI, PrivatePOSTAPI):
            storage = self.get_storage_from_path(path, request)
            path = '/'+'/'.join(path.split('/')[2:])
            
            # Bug workaround?
            if not path.endswith('/'):
                path += '/' 

            # Get the file upload
            file_upload = request.FILES['files']