I'm a noob at scripting, I just started learning this week :/
If you are uploading a 3D model -- such as a ".3dsx" file or a ".obj" file -- you upload it as a mesh! A model is a grouping of objects (things such as "Parts", "Unions", "Meshes", etc.) which isn't what you are looking for.
If you have any questions or issues contact me. ;)