|
@@ -1127,7 +1127,7 @@ def upload_file(request):
|
|
|
resp = _upload_file(request)
|
|
resp = _upload_file(request)
|
|
|
response.update(resp)
|
|
response.update(resp)
|
|
|
except Exception, ex:
|
|
except Exception, ex:
|
|
|
- response['data'] = str(ex)
|
|
|
|
|
|
|
+ response['data'] = str(ex).split('\n', 1)[0]
|
|
|
hdfs_file = request.FILES.get('hdfs_file')
|
|
hdfs_file = request.FILES.get('hdfs_file')
|
|
|
if hdfs_file:
|
|
if hdfs_file:
|
|
|
hdfs_file.remove()
|
|
hdfs_file.remove()
|