Skip to content

How do I upload an image when creating an asset/model? #27

@Karl-at-Work

Description

@Karl-at-Work

Hey!

How do I upload an image when creating an asset/model? Whenever I set the "Image" to the path of the file, the logs keeps saying that Image is set to null.

Asset currentComputer = new SnipeSharp.Endpoints.Models.Asset { Company = null, AssetTag = systemName, Model = null, StatusLabel = statusLabel, RtdLocation = null, Name = systemName, Serial = serialNumber, WarrantyMonths = warrantyMonths, CustomFields = customFields, Image = PATHTOFILE, UserCanCheckout = true };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions