Uploaded file as part of form submission is displayed in email as integer, not file link

Permalink 0 0 Browser Info Environment
If a form block contains a file upload field, when the form is submitted the notification email contains an integer where the file link should be. On inspecting the code in controller.php it appears that this integer is a file id of some sort.
                $answer=intval( $tmpFileIds[intval($row['msqID'])] );

Ideally a link to the file would be displayed, rather than the file id. The file id not helpful to an end user. It is possible to retrieve the file from the Form Results dashboard, however the email submission approach is preferred by the client.
Status: New

Still Valid:

This bug is valid a newer version of concrete5. View Current Bug
View Replies:
thobruk replied on at Permalink
In addition, the last question's answer is echoed in the uploaded file's id number. This is due to an unset '$answerLong' variable containing the value from the previous iteration.

concrete5 Environment Information

# concrete5 Version

# concrete5 Packages
Extended Search (1.0), Galleria image gallery (2.0), Simple Image Gallery (1.1.2).

# concrete5 Overrides
blocks/form, blocks/page_list, blocks/simple_image_gallery, blocks/slideshow, blocks/search, blocks/image, themes/feastivities

# Server Software

# Server API

# PHP Version

# PHP Extensions
bcmath, bz2, calendar, cgi, ctype, curl, date, dbase, dom, eAccelerator, exif, filter, ftp, gd, gettext, hash, iconv, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, posix, pspell, Reflection, session, SimpleXML, soap, sockets, SPL, SQLite, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Optimizer, zip, zlib.

# PHP Settings
log_errors_max_len - 1024
max_execution_time - 5
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
memory_limit - 32M
post_max_size - 8M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 16M
eaccelerator.shm_max - 0
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2