cforms II User Forum

Registration is currently disabled.


Login form protected by Login LockDown.

Lost password?
Advanced Search

— Forum Scope —


— Match —


— Forum Options —


Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS Related Topics
how to retrieve uploaded file name, {field name} does not work
Tags: ***
December 21, 2012
8:12 pm


I have a form with an upload box called "Upload File". In the admin email I'd like to display either the name of the uploaded file (including the tracking id) or the url to it. If I use {Upload File} like the other fields, it doesn't work.

Am I missing something?


December 21, 2012
11:04 pm

I have found a workaround by using a hard-coded URL and then {ID}-{_field3}, e.g.{ID}-{_field3}

Replace "3" by whatever the field index is in your case.

This works for now but can be improved .. there is a setting in the fiel upload settings section for the relative url path which could be used.

January 13, 2013
5:20 pm

THANK YOU SO MUUUCH! I have been looking for the solution to this problem for daaaays! Thank you thank you thank you! My only other question is then how would I change the name of the file so that the ID of the post is at the front? Not a big issue but just wanting to ensure that each post is unique so that files don't get overwritten.

Thank you again! 

October 23, 2014
10:34 pm
Awaiting Moderation

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3762

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5361

Posts: 18742

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)