 <p>Can you please share which upload type you require? It seems that this code has a mix of both signed and unsigned uploads. For example, you use the <code>unsigned_upload_tag</code> method while also passing the <code>timestamp</code>, <code>api_key</code> and <code>signature</code> which are required only for signed uploads.</p>