This doesn't look right. The ENV bit isn't being interpolated into the string, and I suspect it's not what you want anyway; I suspect you want the upload type, not the full path.