Open eliataylor opened 1 week ago
Starting from infer_field_datatype add a condition for "remote-image" which expects a cloud storage file path or reference.
In the users project add a path for:
users
path('api/generate-iam-token/', generate_iam_credentials, name='api_generate_iam_token'),
In ReactJS, build a component that can generate a new api if needed, and POST directly to cloud storage: https://www.googleapis.com/upload/storage/v1/b/YOUR_BUCKET_NAME/o?uploadType=media&name=${selectedFile.name};
https://www.googleapis.com/upload/storage/v1/b/YOUR_BUCKET_NAME/o?uploadType=media&name=${selectedFile.name}
More docs are here: https://cloud.google.com/storage/docs/samples/storage-generate-upload-signed-url-v4 and https://cloud.google.com/storage/docs/xml-api/post-object-multipart
Other endpoints that process bucket file references, should validate existence / access / ownership.
provide Cloud Bucket access (world-writable)
Starting from infer_field_datatype add a condition for "remote-image" which expects a cloud storage file path or reference.
In the
users
project add a path for:In ReactJS, build a component that can generate a new api if needed, and POST directly to cloud storage:
https://www.googleapis.com/upload/storage/v1/b/YOUR_BUCKET_NAME/o?uploadType=media&name=${selectedFile.name}
;More docs are here: https://cloud.google.com/storage/docs/samples/storage-generate-upload-signed-url-v4 and https://cloud.google.com/storage/docs/xml-api/post-object-multipart
Other endpoints that process bucket file references, should validate existence / access / ownership.