<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def upload(name):
    '''Handle upload on POST if authorized.'''
    storage = fs.by_name(name)
    return jsonify(success=True, **handle_upload(storage))