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
Help Req - Upload directory based on dropdown menu?
September 3, 2012
5:17 pm
Simon
Guest

Hi guys,

The issue

I want to create a site dedicated to sharing of modifications for the game Artemis Spaceship Bridge Simulator. As file indexing and categorizing system i'm using Wordpress Filebase (http://wordpress.org/extend/plugins/wp-filebase/) and the way this system categorizes files is by folder.

Now this is my upload form:

As you can see it has a 'select file category' dropdown. This lets the user select which category (and therefore file path) the file should be put into.

 

The desired solution

i've set the base upload directory to correspond with the 'root downloads folder' of the Filebase index. Filebase will consider every folder within this root folder to be a seperate category. I've set the 'hiddenvalue' options for the dropdown menu to match the corresponding goal folders

So now what i would like to see is that basically this drop down menu influences the goal directory for the file to be put. Instead of "<wordpress>/<Cforms upload path>/" the output location should be "<wordpress>/<Cforms upload path>/<Hiddenvalue of the dropdown menu>/".

How do i do this?

October 12, 2012
4:08 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

you can dynamically at run-time change target folder and file name, see my-functions.php

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
29 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)