Fix: tempURL was constructed with wrong method. Causing fail to add attribute.