Posts: 3
Threads: 1
Joined: Sep 2011
Reputation:
0
I have a multi-page form where one of the fields is for an image upload. It works fine except the filename is file.jpg, 1_file.jpg, 2_file.jpg, etc. Can it be set up so the filename is actually the name of the file being uploaded, preceded by 1_, 2_, etc, for duplicate names instead of formtools forcing the filename to be "file", or am I doing something wrong causing the filename to be lost?
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Hi mrdan,
Welcome to the forums!
Couple of questions: what version of the Core are you using? And what was the original filename of the file being uploaded?
- Ben
Posts: 3
Threads: 1
Joined: Sep 2011
Reputation:
0
Hi Ben,
v 2.0.6
original filename = winterpainting.jpg .
Thanks for your help.
Posts: 3
Threads: 1
Joined: Sep 2011
Reputation:
0
That did the trick!!
Thanks so much for your excellent support!
Posts: 2,456
Threads: 39
Joined: Dec 2008
Reputation:
6
Interesting....! I'm very glad it worked, but would you mind taking a look at your /global/library.php file? It sounds like maybe that file wasn't upgraded properly. At the top of the file, what version does it say Form Tools is?
That file *should* contain that variable you just added to your config.php file.
- Ben
Posts: 4
Threads: 1
Joined: Apr 2010
Reputation:
0
Sep 23rd, 2011, 1:11 AM
(This post was last modified: Sep 23rd, 2011, 1:28 AM by Kfrix.)
I have exactly the same problem! I'm adding that line to my config file now. I looked at my library.php file, and the version is @version 2.0.6 * @package 2-0-6
In library.php the line is there, but has a slight difference, a dash after the underscore before the numbers
My Formtools is version 2.0.6
Thanks for this fix, I have applied it, and it worked.
Kathryn