Browse Source

HUE-8346 [s3] Fix file upload.

jdesjean 7 years ago
parent
commit
d703282027
1 changed files with 1 additions and 4 deletions
  1. 1 4
      desktop/libs/aws/src/aws/s3/upload.py

+ 1 - 4
desktop/libs/aws/src/aws/s3/upload.py

@@ -115,10 +115,7 @@ class S3FileUploadHandler(FileUploadHandler):
 
 
 
 
   def _get_s3fs(self, request):
   def _get_s3fs(self, request):
-    try:
-      fs = request.fs
-    except AttributeError:
-      fs = get_s3fs()
+    fs = get_s3fs() # Pre 6.0 request.fs did not exist, now it does. The logic for assigning request.fs is not correct for FileUploadHandler.
 
 
     if not fs:
     if not fs:
       raise S3FileUploadError(_("No S3 filesystem found."))
       raise S3FileUploadError(_("No S3 filesystem found."))