Hello, I want to know is it possible to get a staged upload file only by knowing a bulk operation id?
My use case is. I followed these steps to create the bulk operation
Create a request file in .jsonl format
Create a staged upload
Upload the request file to the staged upload
Create a bulk operation.
poll or subsribe for the webhook
In step 5 I need to get the request file from step 1. I don’t want to store the file from step 1 in my filesystem, because I know this file is already stored in shopify and I don’t want to clutter up my file system. Is there a way to do it differently?
There isn’t a direct way to retrieve the original staged upload file using only the bulk operation ID. The Bulk Operations API provides details about the operation’s progress, status, and results, but not about the input file itself.
If you don’t want to store the request file on your filesystem, you might consider other storage solutions that are more transient or scalable, like cloud storage (e.g., AWS S3, Google Cloud Storage) or a database blob. This way, you can store the file temporarily and retrieve or delete it as needed without cluttering your local filesystem.