Dear Appnitro people,
When a the form is used to upload a file, it appends a string of (what appears to be) random characters to the file name. For instance, the file
'freedom from.mp3'
gets renamed
'element_3_36f8156c09d5133251dd578e252a1441-2-freedom from.mp3'
in the machform/data/form_x/files folder and in the database.
This means that when I create a download link for it (using the smart file script from http://www.zubrag.com/scripts/download.php) it downloads the file with that long, somewhat ungainly, file name.
I notice that when you use the download link from the sent email or the MachForm Form Manager Entries area, it will download with the original correct file name; however I do not want to allow users access to that area.
I would like to be able for users to download the files with the original filenames.
The download link on my site looks like:
<a href="download.php?f=<?php echo $row_Recordset1['element_3']; ?>">Download</a>
and you can see what I'm trying to do here: http://www.buffalogals.co.uk/Admin/fileshare.php
It works fine, except for the characters appended to the file name.
Any help would be much appreciated.
