The teleport spell allows one to teleport an object:
This spell instantly transports you and up to eight willing creatures of your choice that you can see within range, or a single object that you can see within range, to a destination you select. If you target an object, it must be able to fit entirely inside a 10-foot cube, and it can't be held or carried by an unwilling creature.
Suppose I want to send a chest full of items to someone far away. If I cast teleport on the chest to send it to them, do the contents go with it, or do they stay behind and spill out onto the floor where the chest used to be?
Does the answer change if, instead of a mundane container, I use a bag of holding?