-
Notifications
You must be signed in to change notification settings - Fork 17
file_name and file_orginalFile as a header is not found in file-source #9
Comments
The The Unfortunately I don't see any workaround for the current state, unless you copy/paste the Meanwhile I'm fixing the |
Thanks @artembilan, |
As I said: the only one workaround I see is like code your own |
sure @artembilan will do |
Fixes spring-attic#9 * Refactor code according the latest dependencies * Fix typos in the README * Regenerate READMEs according the latest properties * Verify the `FileHeaders` come with the output message * Remove test for the `markersJson = false` - non-relevant any more
The Pull Request for this issue provides a test-case when we verify that mentioned headers already come with the output message. |
Does the integration on Mar 22 mean that file_name, file_orginalFile, and Content-Type are available in the latest SNAPSHOT? I still can't see it working. The versions I'm using: |
No, you have to use |
Sorry, for your quick response. |
I am using file-source with s3 sink, I want to use this header to upload the file to S3 with the same name.
I can see a few headers (like Content-Type, id and timestamp) but file_name in header is not found.
I was assigning the
key-expression = "headers['file_name']"
but I get an error message that such header does not exist.Can you tell me what is the
issue
, as I can see in this doc https://github.com/spring-cloud-stream-app-starters/file/tree/master/spring-cloud-starter-stream-source-fileif we take mode as
mode = contents
Headers should come these:
Content-Type: application/octet-stream
file_orginalFile: <java.io.File>
file_name: <file name>
The text was updated successfully, but these errors were encountered: