|
@@ -29,7 +29,7 @@ import errno
|
|
|
import logging
|
|
import logging
|
|
|
import time
|
|
import time
|
|
|
|
|
|
|
|
-from django.core.files.uploadhandler import FileUploadHandler, StopFutureHandlers, StopUpload, UploadFileException
|
|
|
|
|
|
|
+from django.core.files.uploadhandler import FileUploadHandler, StopFutureHandlers, StopUpload, UploadFileException, SkipFile
|
|
|
from django.utils.translation import ugettext as _
|
|
from django.utils.translation import ugettext as _
|
|
|
|
|
|
|
|
import hadoop.cluster
|
|
import hadoop.cluster
|
|
@@ -164,7 +164,7 @@ class HDFSfileUploadHandler(FileUploadHandler):
|
|
|
|
|
|
|
|
if not self._activated:
|
|
if not self._activated:
|
|
|
if self.request.META.get('PATH_INFO').startswith('/filebrowser') and self.request.META.get('PATH_INFO') != '/filebrowser/upload/archive':
|
|
if self.request.META.get('PATH_INFO').startswith('/filebrowser') and self.request.META.get('PATH_INFO') != '/filebrowser/upload/archive':
|
|
|
- raise StopUpload()
|
|
|
|
|
|
|
+ raise SkipFile()
|
|
|
return raw_data
|
|
return raw_data
|
|
|
|
|
|
|
|
try:
|
|
try:
|