From bfac68d84c24c92239f61e02ad1d569de4dcae4f Mon Sep 17 00:00:00 2001 From: Marius Date: Mon, 19 Aug 2019 11:19:07 +0200 Subject: [PATCH] docs: Add section about storage details --- docs/hooks.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/hooks.md b/docs/hooks.md index b43e117..273f2de 100644 --- a/docs/hooks.md +++ b/docs/hooks.md @@ -88,6 +88,18 @@ The process of the hook files are provided with information about the event and // trust it without escaping it first! "MetaData": { "filename": "transloadit.png" + }, + // Details about where the data store saved the uploaded file. The different + // availabl keys vary depending on the used data store. + "Storage": { + // For example, the filestore supplies the absolute file path: + "Type": "filestore", + "Path": "/my/upload/directory/14b1c4c77771671a8479bc0444bbc5ce", + + // The S3Store and GCSStore supply the bucket name and object key: + "Type": "s3store", + "Bucket": "my-upload-bucket", + "Key": "my-prefix/14b1c4c77771671a8479bc0444bbc5ce" } } ```