

def post(self):
    if (not may(CREATE)):
        raise Forbidden()
    data = request.get_json()
    data_filename = data['filename']
    data_size = int(data['size'])
    data_type = data['type']
    maxlife_value = int(data['maxlife_value'])
    maxlife_unit = data['maxlife_unit'].upper()
    maxtime = time_unit_to_sec(maxlife_value, maxlife_unit)
    maxlife_timestamp = ((int(time.time()) + maxtime) if (maxtime > 0) else maxtime)
    name = ItemName.create(current_app.storage)
    with current_app.storage.create(name, data_size) as item:
        Upload.meta_new(item, data_size, data_filename, data_type, 'application/octet-stream', data, maxlife_stamp=maxlife_timestamp)
        return jsonify({
            'url': url_for('bepasty.upload_continue', name=name),
            'name': name,
        })

dataset/ETHPy150Open bepasty/bepasty-server/bepasty/views/upload.py UploadNewView.post/VarMisuse@155/225 `name`->`data`