Uploadfehler abgefangen
This commit is contained in:
parent
cfc428e59e
commit
39ba8d569e
|
|
@ -1230,8 +1230,8 @@ def uploadFileFromStandard(request):
|
||||||
tf.save()
|
tf.save()
|
||||||
return JsonResponse({"success" : success, "data" : {'savedobj_id' : new_id, 'savedobj_name' : new_file_name}})
|
return JsonResponse({"success" : success, "data" : {'savedobj_id' : new_id, 'savedobj_name' : new_file_name}})
|
||||||
except:
|
except:
|
||||||
success = False
|
success = True
|
||||||
return JsonResponse({"success" : success, "data" : "ERROR"})
|
return JsonResponse({"success" : success, "data" : {'savedobj_id' : None, 'savedobj_name' : 'Datei hochgeladen, enthält aber falsche Zeichen. Bitte Seite neu laden und anschließend über Suchfeld hinzufügen.'}})
|
||||||
|
|
||||||
return JsonResponse({"success" : success, "data" : "DONE!"})
|
return JsonResponse({"success" : success, "data" : "DONE!"})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue