smithn.nc said:
I've noticied a few odd quirks with the file handling. First, if a file is uploaded to a directory other than cforms/attachments, the database tracking URL to download the file will not reflect this. I assume the value is hard-coded somewhere, where it should be set based on the form used.
It will reflect it if properly configured. You'll find two directory paths in your upload field config. One is an absolute path, the other a reative URL:
- /home/user/www/wp-content/my-upload-dir
- /wp-content/my-upload-dir
However for multi-part forms there is indeed a bug that assumes all attachments to be in the configured folders of the last form of the series.
I'm working on a Patch to fix that, to be released shortly.
Second, when downloading a CSV of the form submissions, the only thing present is the original file name, which isn't very useful for retreival (especially if your users like to use the same names for files, and there's a million of them that just begin with a different number.) It would be better to include the URL to the uploaded file in the CSV instead, or maybe both the URl and the original filename.
good point, I'll change this for v10.4.