Edit to allow posting a local file to Shock server to also upload attributes.