def main():
policy = {"call":["pick","store"],"expiry":1673461800}
p = Policy(policy,"APP_SECRET")
respSign = p.signature_params()
fpclient = FilepickerClientSecure('S3')
resp = fpclient.store_from_url("https://cdn.shopify.com/s/files/1/1390/1485/products/image_aacb3d0a-bed1-4265-99c5-5ec95dbf441b_1024x1024.jpg?v=1643292001",
respSign['policy'],
respSign['signature']
)
respStore = fpclient.store_local_file("/Users/user1/Desktop/user1.pdf",
respSign['policy'],
respSign['signature']
)
print(respStore)
When I pass the API_KEY in the URL query, I'm able to upload the files.
But if I use just the signature and policy I'm unable to upload the files. I get the following error.
Can you please tell me how to fix this error ? Is it possible to upload files with policy and signature ?