I am attempting to use the REST API for ArcGIS Online.
I have been successful in adding some general items through code, but I would like to now upload a map package using the API.
I am using the 'AddItem' function and am applying the 'file' parameter in my POST request (I also make it multipart)
What I am wondering what do I pass as a value for the 'file' parameter when trying to upload a file such as a map package?
Do I pass a local path: c:\temp\test.mpk
Do I pass a Base64 string ?
Do I pass some sort of byte array?
I have tried many different methods, but none are working.
Any ideas would be helpful.