Resource upload script