def METHOD_NAME(item):
    # For some reason FieldStorage has the boolean value of false so we compare to None
    graphic_upload = item.get('graphic_upload')
    if graphic_upload is not None and graphic_upload != 'undefined':
        # remove previous file if exists
        _remove_file_by_path(item.get('graphic'))
        upload = GlobalUpload({
            'filename': '{}_{}'.format(item.get('id')[0:4], text_type(uuid.uuid4())),
            'upload': graphic_upload
        })
        upload.upload()
        item['graphic'] = h.url_for('hdx_global_file_server.global_file_download', filename=upload.filename)
        del item['graphic_upload']