cforms II User Forum

Registration is currently disabled.
Guest

FAQs

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
Alex
Guest

Hi,

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?

Thanks,
Alex.

December 21, 2012
11:04 pm
Alex
Guest

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

http://www.microsoft.com/uploads/{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
Milky655
Guest

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! 

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
30 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: 3744

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5345

Posts: 18714

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

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

Administrators: Oliver (6400), Nicky (3)