web stats
Extracting filenames from HTTP Request - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 01-10-2012, 11:54 AM
Mireth Mireth is offline
OBX.1 Kenobi
Join Date: Aug 2010
Posts: 27
Mireth is on a distinguished road
Default Extracting filenames from HTTP Request

I have a channel that picks up a file from a file reader then sends it via HTTP Connector. My HTTP receiver on the other end successfully extracts the file from the message and writes it out using a file writer, but the file is called 7d89a7dsa88d87s.dat or something along those lines. What happens to the filename during HTTP transfer and how can I extract it to use again? Thank!
Reply With Quote
Old 01-10-2012, 02:57 PM
geraldb geraldb is offline
Mirth Employee
Join Date: Aug 2006
Location: Irvine, CA
Posts: 314
geraldb is an unknown quantity at this point

When using the File Reader as the source, you can use the ${ORIGINALNAME} variable in a destination to refer to the source file name.
Gerald Bortis | Chief Information Officer | Mirth Corporation
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 10:03 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation