SnipeSharp icon indicating copy to clipboard operation
SnipeSharp copied to clipboard

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

Open Karl-Qlogic opened this issue 1 year ago • 0 comments

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 };

Karl-Qlogic avatar Mar 10 '23 13:03 Karl-Qlogic