We can’t guess what goes on inside
'/api/v1/olt/uploadfile/'. But it looks like you execute the ajax call.
After your success callback, add an error callback.
JΛ̊KE
PS Use the debugger to check the results in the network tab. You will see what the server returns.