SnipeSharp
SnipeSharp copied to clipboard
How do I upload an image when creating an asset/model?
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 };