Upload Error Handler

Helper functions:

Other programming issue: