Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Karl-Qlogic opened this issue Mar 10, 2023 · 0 comments
Open

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

Karl-Qlogic opened this issue Mar 10, 2023 · 0 comments

Comments

@Karl-Qlogic
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant